Skip to content

Commit

Permalink
fix: only include content-type with POST
Browse files Browse the repository at this point in the history
  • Loading branch information
reneaaron committed Aug 8, 2023
1 parent 1ac12fd commit 021a440
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ export async function request({
url.toString(),
{
headers: {
...
{ "Content-Type": "application/json; charset=utf-8" },
...(isPost
? { "Content-Type": "application/json; charset=utf-8" } : undefined),
...authHeader,
...headers,
...{
Expand Down

0 comments on commit 021a440

Please sign in to comment.