🐛 Fix setting contentType even tho there's no body
This commit is contained in:
parent
a7547f85ca
commit
d52d636641
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ export class APIRequest {
|
|||
)
|
||||
form.append('payload_json', JSON.stringify(body))
|
||||
body = form
|
||||
} else {
|
||||
} else if (body !== undefined) {
|
||||
contentType = 'application/json'
|
||||
body = JSON.stringify(body)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue