Modify request body handling for GET method

This commit is contained in:
Seokseong Jeon 2026-02-07 00:59:05 +09:00 committed by GitHub
parent 92fe8af879
commit 8aaa786f31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -349,7 +349,7 @@ export default class MainAPIR extends Plugin {
// If no cached data or auto-update is requested, make a new request
if (!responseData || autoUpdate) {
try {
body = JSON.stringify(body);
body = method == "GET" ? undefined : JSON.stringify(body);
const response = await requestUrl({
url: URL,
method,