postman-request
Advanced tools
Comparing version 2.88.1-postman.20 to 2.88.1-postman.21
@@ -10,3 +10,3 @@ { | ||
], | ||
"version": "2.88.1-postman.20", | ||
"version": "2.88.1-postman.21", | ||
"repository": { | ||
@@ -13,0 +13,0 @@ "type": "git", |
@@ -1563,4 +1563,5 @@ 'use strict' | ||
var contentType = self.getHeader('content-type') | ||
var overrideInvalidContentType = contentType ? !self.allowContentTypeOverride : true | ||
if (form) { | ||
if (!/^application\/x-www-form-urlencoded\b/.test(contentType)) { | ||
if (overrideInvalidContentType && !/^application\/x-www-form-urlencoded\b/.test(contentType)) { | ||
self.setHeader('Content-Type', 'application/x-www-form-urlencoded') | ||
@@ -1585,3 +1586,3 @@ } | ||
}) | ||
if (!contentTypeMatch) { | ||
if (overrideInvalidContentType && !contentTypeMatch) { | ||
// overrides invalid or missing content-type | ||
@@ -1588,0 +1589,0 @@ self.setHeader('Content-Type', 'multipart/form-data; boundary=' + self._form.getBoundary()) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
239023
3194