Skip to content

Commit

Permalink
Merge pull request #449 from woudini/tolerance-provision
Browse files Browse the repository at this point in the history
Support Tolerance Provision when parsing headers
  • Loading branch information
mislav committed Dec 6, 2016
2 parents ccea05d + eac7a2b commit d7989c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fetch.js
Expand Up @@ -355,7 +355,7 @@

function parseHeaders(rawHeaders) {
var headers = new Headers()
rawHeaders.split('\r\n').forEach(function(line) {
rawHeaders.split(/\r?\n/).forEach(function(line) {
var parts = line.split(':')
var key = parts.shift().trim()
if (key) {
Expand Down

0 comments on commit d7989c1

Please sign in to comment.