Skip to content

Commit

Permalink
fix: Append additional default headers to headers init
Browse files Browse the repository at this point in the history
  • Loading branch information
eliassjogreen committed Sep 25, 2024
1 parent 4942930 commit 4b8901b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@denosaurs/typefetch",
"version": "0.0.28",
"version": "0.0.29",
"exports": {
".": "./main.ts"
},
Expand Down
6 changes: 5 additions & 1 deletion mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,11 @@ export function addOperationObject(
additionalHeaders.push(`"Content-Type": "${contentType}"`);
}

const headersInitType = toHeadersInitType(document, parameters);
const headersInitType = toHeadersInitType(
document,
parameters,
additionalHeaders,
);
if (headersInitType !== undefined) {
omit.push("headers");
}
Expand Down

0 comments on commit 4b8901b

Please sign in to comment.