proxying-agent
Advanced tools
Comparing version 2.2.2 to 2.2.3
@@ -189,3 +189,3 @@ 'use strict'; | ||
newReq.once('response', function(response) { | ||
if (!response.statusCode == 407 || !response.headers['proxy-authenticate']) { | ||
if (response.statusCode !== 407 || !response.headers['proxy-authenticate']) { | ||
this.emitError(req, 'did not receive NTLM type 2 message'); | ||
@@ -203,2 +203,5 @@ return; | ||
// capture the socket | ||
this.setSocket(req, socket); | ||
this.authHeader = { | ||
@@ -209,7 +212,2 @@ header: 'Proxy-Authorization', | ||
response.on('socket', function(socket) { | ||
// capture the socket | ||
this.setSocket(req, socket); | ||
}.bind(this)); | ||
// read all the data from the socket as it may contain a body that should be discarded | ||
@@ -216,0 +214,0 @@ response.on('data', function() { |
{ | ||
"name": "proxying-agent", | ||
"version": "2.2.2", | ||
"version": "2.2.3", | ||
"description": "Node HTTP/HTTPS Forward Proxy Agent", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
33253
660