dynamic-reverse-proxy
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -116,3 +116,3 @@ var httpProxy = require("http-proxy"), | ||
if (!host) { | ||
this.emit("proxyError", new Error("NOT_FOUND"), req, res); | ||
this.emit("proxyError", new Error("NOT_FOUND"), null, req, res); | ||
@@ -119,0 +119,0 @@ if (res.writable) { |
{ | ||
"author": "Andrew Dunkman <andrew@dunkman.org>", | ||
"name": "dynamic-reverse-proxy", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "url": "git://github.com/softek/dynamic-reverse-proxy.git" |
@@ -67,4 +67,4 @@ # dynamic-reverse-proxy | ||
- `proxyError` is passed `(error, request, response)` and is emitted when: | ||
- A request is sent to a known host but the request could not be proxied (likely the host was unreachable). The host is availabe at `request.host`. If no handler ends the response back to the original client, `500 Internal Server Error` will be returned. | ||
- `proxyError` is passed `(error, host, request, response)` and is emitted when: | ||
- A request is sent to a known host but the request could not be proxied (likely the host was unreachable). If no handler ends the response back to the original client, `500 Internal Server Error` will be returned. | ||
- No host could be found to handle the request. In this case, the `error` will be `NOT_FOUND`. If no handler ends the response back to the original client, `501 Not Implemented` will be returned. | ||
@@ -71,0 +71,0 @@ |
6579