diff --git a/src/http.ts b/src/http.ts index 9b8973c..8a838f6 100644 --- a/src/http.ts +++ b/src/http.ts @@ -421,7 +421,11 @@ export class HTTP { } if (this.options.headers['content-type'] === 'application/json') { - this.options.body = JSON.stringify(body) + if (typeof body !== 'string') { + this.options.body = JSON.stringify(body) + } else { + this.options.body = body + } } else { this.options.body = body }