🐛 Fix setting contentType even tho there's no body

This commit is contained in:
Helloyunho 2021-05-03 20:54:39 +09:00
parent a7547f85ca
commit d52d636641

View file

@ -90,7 +90,7 @@ export class APIRequest {
) )
form.append('payload_json', JSON.stringify(body)) form.append('payload_json', JSON.stringify(body))
body = form body = form
} else { } else if (body !== undefined) {
contentType = 'application/json' contentType = 'application/json'
body = JSON.stringify(body) body = JSON.stringify(body)
} }