http-proxy
Advanced tools
Comparing version 1.15.0 to 1.15.1
@@ -111,5 +111,7 @@ var url = require('url'), | ||
function writeStatusCode(req, res, proxyRes) { | ||
res.statusCode = proxyRes.statusCode; | ||
// From Node.js docs: response.writeHead(statusCode[, statusMessage][, headers]) | ||
if(proxyRes.statusMessage) { | ||
res.statusMessage = proxyRes.statusMessage; | ||
res.writeHead(proxyRes.statusCode, proxyRes.statusMessage); | ||
} else { | ||
res.writeHead(proxyRes.statusCode); | ||
} | ||
@@ -116,0 +118,0 @@ } |
{ | ||
"name": "http-proxy", | ||
"version": "1.15.0", | ||
"version": "1.15.1", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
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
45831
817