Skip to content
Snippets Groups Projects
Commit 698fd050 authored by echicken's avatar echicken :chicken:
Browse files

Normalized header name may already match what we received.

parent 448107cb
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -173,9 +173,11 @@ HTTPRequest.prototype.ReadHeaders=function() {
this.response_headers_parsed[m[1]] = [];
this.response_headers_parsed[m[1]].push(m[2]);
var lc = m[1].toLowerCase();
if (this.response_headers_parsed[lc] == undefined)
this.response_headers_parsed[lc] = [];
this.response_headers_parsed[lc].push(m[2]);
if (lc !== m[1]) {
if (this.response_headers_parsed[lc] == undefined)
this.response_headers_parsed[lc] = [];
this.response_headers_parsed[lc].push(m[2]);
}
}
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment