mirror of
https://github.com/rooyca/obsidian-api-request.git
synced 2026-07-22 07:50:27 +00:00
Modify request body handling for GET method
This commit is contained in:
parent
92fe8af879
commit
8aaa786f31
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue