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

Normalized header name may already match what we received.

parent b41d1226
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -173,9 +173,11 @@ HTTPRequest.prototype.ReadHeaders=function() { ...@@ -173,9 +173,11 @@ HTTPRequest.prototype.ReadHeaders=function() {
this.response_headers_parsed[m[1]] = []; this.response_headers_parsed[m[1]] = [];
this.response_headers_parsed[m[1]].push(m[2]); this.response_headers_parsed[m[1]].push(m[2]);
var lc = m[1].toLowerCase(); var lc = m[1].toLowerCase();
if (this.response_headers_parsed[lc] == undefined) if (lc !== m[1]) {
this.response_headers_parsed[lc] = []; if (this.response_headers_parsed[lc] == undefined)
this.response_headers_parsed[lc].push(m[2]); 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.
Please register or to comment