revert: store header keys lower case internally (#12837)

This reverts commit 49ec3d10ad.
This commit is contained in:
Luca Casonato 2021-11-23 01:23:11 +01:00 committed by GitHub
parent 210300d049
commit 2eae1ae665
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 32 additions and 18 deletions

View file

@ -173,8 +173,10 @@
let charset = null;
let essence = null;
let mimeType = null;
const headerList = headerListFromHeaders(this[_headers]);
const values = getDecodeSplitHeader(headerList, "content-type");
const values = getDecodeSplitHeader(
headerListFromHeaders(this[_headers]),
"Content-Type",
);
if (values === null) return null;
for (const value of values) {
const temporaryMimeType = mimesniff.parseMimeType(value);