http-proxy
Advanced tools
Comparing version 1.8.1 to 1.9.0
@@ -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; |
@@ -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 |
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
37342
706