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.8.1 to 1.9.0

1

lib/http-proxy.js

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

* changeOrigin: <true/false, Default: false - changes the origin of the host header to the target URL>
* auth : Basic authentication i.e. 'user:password' to compute an Authorization header.
* hostRewrite: rewrites the location hostname on (301/302/307/308) redirects, Default: null.

@@ -46,0 +47,0 @@ * }

@@ -49,2 +49,6 @@ var common = exports,

if (options.auth) {
outgoing.auth = options.auth;
}
if (isSSL.test(options[forward || 'target'].protocol)) {

@@ -51,0 +55,0 @@ outgoing.rejectUnauthorized = (typeof options.secure === "undefined") ? true : options.secure;

3

lib/http-proxy/passes/web-incoming.js

@@ -67,6 +67,7 @@ var http = require('http'),

var encrypted = req.isSpdy || req.connection.encrypted || req.connection.pair;
var values = {
for : req.connection.remoteAddress || req.socket.remoteAddress,
port : common.getPort(req),
proto: req.isSpdy ? 'https' : (req.connection.pair ? 'https' : 'http')
proto: encrypted ? 'https' : 'http'
};

@@ -73,0 +74,0 @@

{
"name" : "http-proxy",
"version" : "1.8.1",
"version" : "1.9.0",

@@ -5,0 +5,0 @@ "repository" : {

@@ -26,3 +26,3 @@ <p align="center">

A new proxy is created by calling `createProxyServer` and passing
an `options` object as argument ([valid properties are available here](lib/http-proxy.js#L34-L51))
an `options` object as argument ([valid properties are available here](lib/http-proxy.js#L33-L50))

@@ -29,0 +29,0 @@ ```javascript

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