minor refactor
This commit is contained in:
parent
13be809cfe
commit
901162c8b6
1 changed files with 1 additions and 1 deletions
|
|
@ -672,7 +672,7 @@
|
|||
requestString.push(" -H '" + element.key + ": " + element.value + "' \\\n");
|
||||
})
|
||||
}
|
||||
if (this.method === 'POST' || this.method === 'PUT') {
|
||||
if (['POST', 'PUT'].includes(this.method)]) {
|
||||
const requestBody = this.rawInput ? this.rawParams : this.rawRequestBody;
|
||||
requestString.push(" -H 'Content-Length: " + requestBody.length + "' \\\n")
|
||||
requestString.push(" -H 'Content-Type: " + this.contentType + "; charset=utf-8' \\\n")
|
||||
|
|
|
|||
Loading…
Reference in a new issue