mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 16:57:22 +00:00
fix: only send Content-Type header to proxy if body content is sent (#2536)
This commit is contained in:
+1
-1
@@ -50,7 +50,7 @@ export async function runMethod<T = any>(
|
||||
body: body ? JSON.stringify(body) : undefined,
|
||||
headers: {
|
||||
Authorization: rest.secretKey,
|
||||
"Content-Type": "application/json",
|
||||
"Content-Type": body ? "application/json" : undefined,
|
||||
},
|
||||
method,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user