mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 11:22:03 +00:00
Fix http_request not allowing bodys (#352)
This commit is contained in:
@@ -335,6 +335,7 @@ class PluginLoader extends Logger {
|
|||||||
fetchNoCors(url: string, request: any = {}) {
|
fetchNoCors(url: string, request: any = {}) {
|
||||||
let args = { method: 'POST', headers: {} };
|
let args = { method: 'POST', headers: {} };
|
||||||
const req = { ...args, ...request, url, data: request.body };
|
const req = { ...args, ...request, url, data: request.body };
|
||||||
|
req?.body && delete req.body
|
||||||
return this.callServerMethod('http_request', req);
|
return this.callServerMethod('http_request', req);
|
||||||
},
|
},
|
||||||
executeInTab(tab: string, runAsync: boolean, code: string) {
|
executeInTab(tab: string, runAsync: boolean, code: string) {
|
||||||
|
|||||||
Reference in New Issue
Block a user