fix: typo
This commit is contained in:
@@ -612,7 +612,7 @@
|
|||||||
requestString.push('xhr.setRequestHeader(' + element.key + ', ' + element.value + ')');
|
requestString.push('xhr.setRequestHeader(' + element.key + ', ' + element.value + ')');
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (['POST', 'PUT'].includes(this.method)]) {
|
if (['POST', 'PUT'].includes(this.method)) {
|
||||||
const requestBody = this.rawInput ? this.rawParams : this.rawRequestBody;
|
const requestBody = this.rawInput ? this.rawParams : this.rawRequestBody;
|
||||||
requestString.push("xhr.setRequestHeader('Content-Length', " + requestBody.length + ")")
|
requestString.push("xhr.setRequestHeader('Content-Length', " + requestBody.length + ")")
|
||||||
requestString.push("xhr.setRequestHeader('Content-Type', `" + this.contentType + "; charset=utf-8`)")
|
requestString.push("xhr.setRequestHeader('Content-Type', `" + this.contentType + "; charset=utf-8`)")
|
||||||
@@ -632,7 +632,7 @@
|
|||||||
} else if (this.auth === 'Bearer Token') {
|
} else if (this.auth === 'Bearer Token') {
|
||||||
headers.push(' "Authorization": "Bearer Token ' + this.bearerToken + ',\n')
|
headers.push(' "Authorization": "Bearer Token ' + this.bearerToken + ',\n')
|
||||||
}
|
}
|
||||||
if (['POST', 'PUT'].includes(this.method)]) {
|
if (['POST', 'PUT'].includes(this.method)) {
|
||||||
const requestBody = this.rawInput ? this.rawParams : this.rawRequestBody;
|
const requestBody = this.rawInput ? this.rawParams : this.rawRequestBody;
|
||||||
requestString.push(' body: ' + requestBody + ',\n')
|
requestString.push(' body: ' + requestBody + ',\n')
|
||||||
headers.push(' "Content-Length": ' + requestBody.length + ',\n')
|
headers.push(' "Content-Length": ' + requestBody.length + ',\n')
|
||||||
@@ -672,7 +672,7 @@
|
|||||||
requestString.push(" -H '" + element.key + ": " + element.value + "' \\\n");
|
requestString.push(" -H '" + element.key + ": " + element.value + "' \\\n");
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (['POST', 'PUT'].includes(this.method)]) {
|
if (['POST', 'PUT'].includes(this.method)) {
|
||||||
const requestBody = this.rawInput ? this.rawParams : this.rawRequestBody;
|
const requestBody = this.rawInput ? this.rawParams : this.rawRequestBody;
|
||||||
requestString.push(" -H 'Content-Length: " + requestBody.length + "' \\\n")
|
requestString.push(" -H 'Content-Length: " + requestBody.length + "' \\\n")
|
||||||
requestString.push(" -H 'Content-Type: " + this.contentType + "; charset=utf-8' \\\n")
|
requestString.push(" -H 'Content-Type: " + this.contentType + "; charset=utf-8' \\\n")
|
||||||
|
|||||||
Reference in New Issue
Block a user