Stringify request data - fixes https://github.com/liyasthomas/postwoman/issues/124
This commit is contained in:
parent
aa1cb313b8
commit
a3acf34b39
1 changed files with 2 additions and 2 deletions
|
|
@ -412,7 +412,7 @@
|
|||
requestBody = this.rawInput ? this.rawParams : this.rawRequestBody;
|
||||
|
||||
Object.assign(headers, {
|
||||
'Content-Length': requestBody.length,
|
||||
//'Content-Length': requestBody.length,
|
||||
'Content-Type': `${this.contentType}; charset=utf-8`
|
||||
});
|
||||
}
|
||||
|
|
@ -437,7 +437,7 @@
|
|||
url: this.url + this.path + this.queryString,
|
||||
auth,
|
||||
headers,
|
||||
data: requestBody
|
||||
data: requestBody.toString()
|
||||
});
|
||||
|
||||
(() => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue