mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 09:20:08 +00:00
fix(rest/request_manager): embed URL in the request body (#536)
* fix big brain bot auth on proxy rest * whoops * fix header * fix url and method in body
This commit is contained in:
@@ -222,8 +222,11 @@ function runMethod(
|
||||
!url.startsWith(IMAGE_BASE_URL)
|
||||
) {
|
||||
return fetch(url, {
|
||||
method,
|
||||
body: body ? JSON.stringify(body) : undefined,
|
||||
body: JSON.stringify({
|
||||
url,
|
||||
method,
|
||||
...(body as Record<string, unknown> || {}),
|
||||
}),
|
||||
headers: {
|
||||
authorization: restAuthorization,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user