From 6569f1b2684c7875e99f9a30802f5378e284e7eb Mon Sep 17 00:00:00 2001
From: Beebles <102569435+beebls@users.noreply.github.com>
Date: Sun, 22 Jan 2023 15:33:26 -0700
Subject: Fix http_request not allowing bodys (#352)

---
 frontend/src/plugin-loader.tsx | 1 +
 1 file changed, 1 insertion(+)

(limited to 'frontend/src/plugin-loader.tsx')

diff --git a/frontend/src/plugin-loader.tsx b/frontend/src/plugin-loader.tsx
index bcd84b3f..7215b49a 100644
--- a/frontend/src/plugin-loader.tsx
+++ b/frontend/src/plugin-loader.tsx
@@ -335,6 +335,7 @@ class PluginLoader extends Logger {
       fetchNoCors(url: string, request: any = {}) {
         let args = { method: 'POST', headers: {} };
         const req = { ...args, ...request, url, data: request.body };
+        req?.body && delete req.body
         return this.callServerMethod('http_request', req);
       },
       executeInTab(tab: string, runAsync: boolean, code: string) {
-- 
cgit v1.2.3

