Skip to content

Commit

Permalink
Typo...
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Stéphenne committed Jul 1, 2023
1 parent d1bac2a commit 5793891
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ export function createApiFetch(f: typeof fetch) {
): Promise<Response> {
return f(input, {
...init,
header: {
headers: {
"Content-Type": "application/json",
"Accept": "application/json",
...init.header,
...init.headers,
},
body: body ? JSON.stringify(body) : undefined,
});
Expand Down

0 comments on commit 5793891

Please sign in to comment.