postman-request
Advanced tools
Comparing version 2.88.1-postman.26 to 2.88.1-postman.27
@@ -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 @@ |
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
242732
3248