mirror of
https://github.com/denoland/deno.git
synced 2025-07-23 05:05:08 +00:00
revert: store header keys lower case internally (#12837)
This reverts commit 49ec3d10ad
.
This commit is contained in:
parent
210300d049
commit
2eae1ae665
4 changed files with 32 additions and 18 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue