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

http-proxy

Package Overview
Dependencies
Maintainers
4
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-proxy - npm Package Compare versions

Comparing version 1.10.1 to 1.11.0

1

lib/http-proxy.js

@@ -42,2 +42,3 @@ var http = require('http'),

* prependPath: <true/false, Default: true - specify whether you want to prepend the target's path to the proxy path>
* ignorePath: <true/false, Default: false - specify whether you want to ignore the proxy path of the incoming request>
* localAddress : <Local interface string to bind for outgoing connections>

@@ -44,0 +45,0 @@ * changeOrigin: <true/false, Default: false - changes the origin of the host header to the target URL>

11

lib/http-proxy/common.js

@@ -86,2 +86,9 @@ var common = exports,

//
// Remark: ignorePath will just straight up ignore whatever the request's
// path is. This can be labeled as FOOT-GUN material if you do not know what
// you are doing and are using conflicting options.
//
outgoingPath = !options.ignorePath ? outgoingPath : '/';
outgoing.path = common.urlJoin(targetPath, outgoingPath);

@@ -179,5 +186,3 @@

retSegs = [
args.filter(function filter(a) {
return !!a;
}).join('/').replace(/\/+/g, '/').replace(/:\//g, '://')
args.filter(Boolean).join('/').replace(/\/+/g, '/').replace(/:\//g, '://')
];

@@ -184,0 +189,0 @@

{
"name": "http-proxy",
"version": "1.10.1",
"version": "1.11.0",
"repository": {

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

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