From c81d28acfe9694d5ebc44ea0ba2bc3efa4916fee Mon Sep 17 00:00:00 2001 From: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> Date: Sun, 21 Feb 2021 12:19:15 -0500 Subject: [PATCH] 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 --- src/rest/request_manager.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/rest/request_manager.ts b/src/rest/request_manager.ts index 67a81e7e5..071bf91c9 100644 --- a/src/rest/request_manager.ts +++ b/src/rest/request_manager.ts @@ -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 || {}), + }), headers: { authorization: restAuthorization, },