http-forward
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -11,6 +11,3 @@ var HttpProxy = require('http-proxy') | ||
proxy.once('proxyRes', function (proxyRes, req, res) { | ||
if (proxyRes.statusCode >= 400) { | ||
return error(null, proxyRes) | ||
} | ||
success() | ||
success(proxyRes) | ||
}) | ||
@@ -17,0 +14,0 @@ |
{ | ||
"name": "http-forward", | ||
"description": "Simple proxy forward for incoming HTTP request", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"repository": "h2non/http-forward", | ||
@@ -6,0 +6,0 @@ "author": "Tomas Aparicio", |
@@ -22,4 +22,5 @@ const http = require('http') | ||
req.forward = { target: target } | ||
forward(req, res, function (err) { | ||
forward(req, res, function (err, res) { | ||
assert.equal(err, undefined) | ||
assert.equal(res.statusCode, 200) | ||
}) | ||
@@ -26,0 +27,0 @@ } |
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
3359
64