diff --git a/src/request.ts b/src/request.ts index df890f7..4ad61e2 100644 --- a/src/request.ts +++ b/src/request.ts @@ -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, ...{