We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5443454 + 0ea7750 commit cec05b6Copy full SHA for cec05b6
src/Utils/index.ts
@@ -14,11 +14,11 @@ export class Utils {
14
if (header) {
15
const allHeaders: string[] = Array.isArray(header) ? header : [header];
16
for (const h of allHeaders) {
17
- const [key, val] = h.split(':').map((k) => k.trim());
+ const [key, ...val] = h.split(':').map((k) => k.trim());
18
if (!val) {
19
throw new Error(`Incorrect Header ${key}`);
20
}
21
- headers[key] = val;
+ headers[key] = val.join(':');
22
23
24
const response = await fetch(url, {
0 commit comments