proxy-middleware
Advanced tools
Comparing version 0.8.0 to 0.9.0
@@ -36,4 +36,6 @@ var os = require('os'); | ||
// Forwarding the host breaks dotcloud | ||
delete opts.headers.host; | ||
if (!options.preserveHost) { | ||
// Forwarding the host breaks dotcloud | ||
delete opts.headers.host; | ||
} | ||
@@ -40,0 +42,0 @@ var myReq = request(opts, function (myRes) { |
{ | ||
"name": "proxy-middleware", | ||
"version": "0.8.0", | ||
"version": "0.9.0", | ||
"description": "http(s) proxy as connect middleware", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -25,2 +25,3 @@ [![Build Status](https://secure.travis-ci.org/andrewrk/connect-proxy.png)](http://travis-ci.org/andrewrk/connect-proxy) | ||
- `cookieRewrite`: this option can be used to support cookies via the proxy by rewriting the cookie domain to that of the proxy server. By default cookie domains are not rewritten. The `cookieRewrite` option works as the `via` option - if you pass `true` the local hostname will be used, and if you pass a string that will be used as the rewritten cookie domain. | ||
- `preserveHost`: When enabled, this option will pass the Host: line from the incoming request to the proxied host. Default: `false`. | ||
@@ -27,0 +28,0 @@ ### Usage with route: |
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
7190
104
38