@whatwg-node/node-fetch
Advanced tools
Comparing version 0.0.6-alpha-20230207100807-5eb50c6 to 0.0.6-alpha-20230207114030-349e836
11
index.js
@@ -732,7 +732,8 @@ 'use strict'; | ||
else { | ||
for (const key in headersInit) { | ||
const value = headersInit[key]; | ||
if (value != null) { | ||
const normalizedValue = Array.isArray(value) ? value.join(', ') : value; | ||
this.map.set(key, normalizedValue); | ||
for (const initKey in headersInit) { | ||
const initValue = headersInit[initKey]; | ||
if (initValue != null) { | ||
const normalizedValue = Array.isArray(initValue) ? initValue.join(', ') : initValue; | ||
const normalizedKey = initKey.toLowerCase(); | ||
this.map.set(normalizedKey, normalizedValue); | ||
} | ||
@@ -739,0 +740,0 @@ } |
{ | ||
"name": "@whatwg-node/node-fetch", | ||
"version": "0.0.6-alpha-20230207100807-5eb50c6", | ||
"version": "0.0.6-alpha-20230207114030-349e836", | ||
"description": "Fetch API implementation for Node", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
Sorry, the diff of this file is not supported yet
86721
2318