Skip to content

Commit

Permalink
reverse commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ademilter committed Dec 3, 2021
1 parent 7aacad0 commit aa355d5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,12 @@ async function fetchData(
}

try {
const optHeaders = options.requestOptions && options.requestOptions.headers;
const res = await fetch(options.url, {
const res = await fetch(options.url!, {
method: 'POST',
body: JSON.stringify(parts),
headers: {
Authorization: `Bearer ${options.token}`,
...optHeaders,
...options.requestOptions?.headers,
},
...options.requestOptions,
});
Expand Down

0 comments on commit aa355d5

Please sign in to comment.