Socket
Socket
Sign inDemoInstall

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.26 to 2.88.1-postman.27

2

package.json

@@ -10,3 +10,3 @@ {

],
"version": "2.88.1-postman.26",
"version": "2.88.1-postman.27",
"repository": {

@@ -13,0 +13,0 @@ "type": "git",

@@ -363,2 +363,10 @@ 'use strict'

if (typeof self.proxy === 'string') {
self.proxy = self.urlParser.parse(self.proxy)
if (self.proxy.auth) {
self.proxy.auth = self._qs.unescape(self.proxy.auth)
}
}
self.tunnel = self._tunnel.isEnabled()

@@ -477,5 +485,3 @@ if (self.proxy) {

if (!self.tunnel && self.proxy && self.proxy.auth && !self.hasHeader('proxy-authorization')) {
var proxyAuthPieces = self.proxy.auth.split(':').map(function (item) { return self._qs.unescape(item) })
var authHeader = 'Basic ' + toBase64(proxyAuthPieces.join(':'))
self.setHeader('Proxy-Authorization', authHeader)
self.setHeader('Proxy-Authorization', 'Basic ' + toBase64(self.proxy.auth))
}

@@ -482,0 +488,0 @@

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