Skip to content

Commit

Permalink
Support Tolerance Provision when parsing headers
Browse files Browse the repository at this point in the history
  • Loading branch information
kwgithubusername committed Dec 5, 2016
1 parent ccea05d commit a329ed3
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.replace("\r\n", "\n").replace("\r", "\n").split('\n').forEach(function(line) {
var parts = line.split(':')
var key = parts.shift().trim()
if (key) {
Expand Down

0 comments on commit a329ed3

Please sign in to comment.