Skip to content

Commit 4b8901b

Browse files
committed
fix: Append additional default headers to headers init
1 parent 4942930 commit 4b8901b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

deno.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@denosaurs/typefetch",
3-
"version": "0.0.28",
3+
"version": "0.0.29",
44
"exports": {
55
".": "./main.ts"
66
},

mod.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,11 @@ export function addOperationObject(
629629
additionalHeaders.push(`"Content-Type": "${contentType}"`);
630630
}
631631

632-
const headersInitType = toHeadersInitType(document, parameters);
632+
const headersInitType = toHeadersInitType(
633+
document,
634+
parameters,
635+
additionalHeaders,
636+
);
633637
if (headersInitType !== undefined) {
634638
omit.push("headers");
635639
}

0 commit comments

Comments
 (0)