Comparing version 2.16.0 to 2.16.2
@@ -22,2 +22,3 @@ // Copyright 2010-2012 Mikeal Rogers | ||
, qs = require('qs') | ||
, querystring = require('querystring') | ||
, crypto = require('crypto') | ||
@@ -297,7 +298,7 @@ | ||
if (self.uri.auth && !self.headers.authorization) { | ||
var authPieces = self.uri.auth.split(':').map(function(item){ return qs.unescape(item) }) | ||
var authPieces = self.uri.auth.split(':').map(function(item){ return querystring.unescape(item) }) | ||
self.auth(authPieces[0], authPieces[1], true) | ||
} | ||
if (self.proxy && self.proxy.auth && !self.headers['proxy-authorization'] && !self.tunnel) { | ||
self.headers['proxy-authorization'] = "Basic " + toBase64(self.proxy.auth.split(':').map(function(item){ return qs.unescape(item)}).join(':')) | ||
self.headers['proxy-authorization'] = "Basic " + toBase64(self.proxy.auth.split(':').map(function(item){ return querystring.unescape(item)}).join(':')) | ||
} | ||
@@ -304,0 +305,0 @@ |
@@ -10,3 +10,3 @@ { | ||
], | ||
"version": "2.16.0", | ||
"version": "2.16.2", | ||
"author": "Mikeal Rogers <mikeal.rogers@gmail.com>", | ||
@@ -13,0 +13,0 @@ "repository": { |
@@ -63,5 +63,13 @@ var assert = require('assert') | ||
console.log('All tests passed'); | ||
basicServer.close(); | ||
request({ | ||
'method': 'GET', | ||
'uri': 'http://test:testing2@localhost:6767/test2/' | ||
}, function(error, response, body) { | ||
assert.equal(response.statusCode, 200); | ||
assert.equal(numBasicRequests, 4); | ||
console.log('All tests passed'); | ||
basicServer.close(); | ||
}); | ||
}); | ||
}); |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
188350
2932
19