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

proxying-agent

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

proxying-agent - npm Package Compare versions

Comparing version 2.2.2 to 2.2.3

10

lib/proxying-agent.js

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

2

package.json
{
"name": "proxying-agent",
"version": "2.2.2",
"version": "2.2.3",
"description": "Node HTTP/HTTPS Forward Proxy Agent",

@@ -5,0 +5,0 @@ "keywords": [

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