Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postman-request

Package Overview
Dependencies
Maintainers
3
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postman-request - npm Package Compare versions

Comparing version 2.88.1-postman.20 to 2.88.1-postman.21

2

package.json

@@ -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())

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc