We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a88264a + 4e1c61b commit ed143b0Copy full SHA for ed143b0
lib/XMLHttpRequest.js
@@ -362,7 +362,7 @@ exports.XMLHttpRequest = function() {
362
} else if (data) {
363
headers["Content-Length"] = Buffer.isBuffer(data) ? data.length : Buffer.byteLength(data);
364
365
- if (!headers["Content-Type"]) {
+ if (!this.getRequestHeader("Content-Type")) {
366
headers["Content-Type"] = "text/plain;charset=UTF-8";
367
}
368
} else if (settings.method === "POST") {
0 commit comments