1034 Commits

Author SHA1 Message Date
Dominic Tarr
76aa982181 Merge pull request #73 from DanBUK/master
This adds a flag to ProxyRequest to disable the setting of x-forwarded-[for|port|proto]
(will change default to true in next commit)
2011-07-21 06:38:48 -07:00
Dominic Tarr
efa17ef6cf [fix] use routing table mhen proxying WebSockets.
closes issue #72
2011-07-21 23:08:11 +10:00
DanBUK
ee3506a8e7 Updating to enableXForwarded 2011-07-19 09:57:21 +01:00
DanBUK
404818b1dc Allow forwarding for x-forwarded-[for|port|proto] to enabled layering of http-proxies. 2011-07-18 12:07:54 +01:00
indexzero
baf0b9e25a [dist] Version bump. 0.5.11 v0.5.11 2011-06-26 13:25:46 -04:00
indexzero
f0649d8d6a [doc] Updated docco docs 2011-06-26 13:05:59 -04:00
indexzero
eb6f9a6354 [api] Simplify the usage for the .changeHeaders option. Fixes #34 2011-06-26 12:21:06 -04:00
indexzero
9d9509f791 [doc] Small update to code docs 2011-06-26 10:56:12 -04:00
indexzero
4f85ca04e4 [api doc test] node-http-proxy now emits websocket:* on important WebSocket events. Added tests for these features and updated some code docs 2011-06-26 10:52:22 -04:00
indexzero
fcfe84626f [doc] Added examples/latent-websocket-proxy.js 2011-06-23 04:48:02 -04:00
indexzero
1ee8ae7104 [doc] Add examples/standalone-websocket-proxy.js 2011-06-23 04:36:16 -04:00
indexzero
b608a029f8 [minor] Add missing space 2011-06-23 04:34:47 -04:00
indexzero
4cdbf0e872 [doc] Added sample for custom error messages using the proxyError event 2011-06-15 09:39:35 -04:00
indexzero
7b574d3d3e [dist] Version bump. 0.5.10 v0.5.10 2011-06-13 02:53:01 -04:00
indexzero
653c6ca1af [doc] Bump version in README.md 2011-06-12 18:29:05 -04:00
indexzero
887c5808c9 [refactor] Manage our own internal list of Agent instances 2011-05-25 00:48:44 -06:00
indexzero
a1cdf005b9 [test] Update tests to use localhost 2011-05-23 16:46:48 -04:00
indexzero
b4ac4d441f [doc] Update docco docs for 0.5.9 2011-05-23 02:23:16 -04:00
indexzero
57ca62c878 [dist] Version bump. 0.5.9 v0.5.9 2011-05-23 02:18:48 -04:00
indexzero
028d2044e7 [fix] Change sec-websocket-location header when proxying WSS --> WS. Added test coverage for this scenario 2011-05-23 02:18:12 -04:00
indexzero
76ecb51e7b [dist] Version bump. 0.5.8. Forwards compatible with new versions of nodejs v0.5.8 2011-05-21 10:43:16 -04:00
indexzero
74120d8988 [doc] Update docco docs 2011-05-21 10:42:46 -04:00
indexzero
a865fe662f [test] Update to vows description for web-socket-proxy-test.js 2011-05-21 10:42:31 -04:00
indexzero
a86d18bc7f [fix] Dont force Connection: close now that Keep-Alive is supported 2011-05-21 10:41:51 -04:00
indexzero
6fd272ac18 [doc] Update to v0.5.7 in code and README.md 2011-05-19 02:48:46 -04:00
indexzero
c5fd368a8d [doc] Regenerate docco docs 2011-05-19 02:48:31 -04:00
indexzero
0911c1719e [dist] Version bump. v0.5.7. Only good on node v0.4.7. See issue #48. v0.5.7 2011-05-19 02:45:39 -04:00
indexzero
421895fa30 [api] Add x-forwarded-proto and x-forwarded-port to proxied HTTP requests 2011-05-19 02:43:41 -04:00
indexzero
e9b3ec9b1d [fix] Set x-forwarded-for from req.connection.socket.remoteAddress if req.connection.remoteAddress is not defined 2011-05-19 02:27:38 -04:00
indexzero
f1c0f641aa [dist] Version bump. v0.5.6 Only good on node v0.4.7. See issue #48. v0.5.6 2011-05-19 01:59:47 -04:00
indexzero
5d2192e654 [api minor] Small refactor to emit webSocketProxyError from a single helper function on any of the various error events in the proxy chain 2011-05-19 01:53:55 -04:00
indexzero
652cca37ea [api] Manual merge of #46: add custom proxyError event and enable production error handling. 2011-05-19 01:38:08 -04:00
indexzero
bd45216bc9 [doc] Regenerate docco docs 2011-05-19 01:33:23 -04:00
indexzero
76580c292a [fix doc] Add error handler to reverseProxy request when proxying WebSockets to prevent unhandled ParseError. Rename some variables in proxyWebSocketRequest to make the code more readable 2011-05-19 01:33:03 -04:00
indexzero
acacc0561f [dist] Version bump. 0.5.5. Only good on node v0.4.7. See issue #48. v0.5.5 2011-05-19 00:38:00 -04:00
indexzero
7bf0caef9f [fix] Change variable references for Websockets, bugs found from using wsbench 2011-05-19 00:37:18 -04:00
indexzero
32a15dd79d [minor] Update README.md to conform to Github flavored markdown v0.5.4 2011-05-18 21:09:31 -04:00
indexzero
521fe27185 [minor] Update README.md to conform to Github flavored markdown 2011-05-18 21:08:25 -04:00
indexzero
c04eec1c37 [dist] Version bump. 0.5.4. Only good on node v0.4.7. See issue #48. 2011-05-18 21:06:56 -04:00
indexzero
abc01bce29 [doc] Update README.md to reflect the new HTTPS to HTTP proxy capabilities 2011-05-18 21:06:34 -04:00
indexzero
faf2618cf3 [doc] Update docco docs 2011-05-18 21:06:21 -04:00
indexzero
91737fadb6 [doc] Update examples for HTTPS to HTTP proxying 2011-05-18 21:06:12 -04:00
indexzero
895f577744 [doc test api] Improve node-http-proxy API to allow for HTTPS to HTTP proxying scenarios. Update tests accordingly. 2011-05-18 21:05:44 -04:00
indexzero
d9fa261cdc [dist] Version bump. v0.5.3. Only good on node v0.4.7. See issue #48. v0.5.3 2011-05-17 21:37:43 -04:00
indexzero
03b9087446 [doc minor] Update docs and code docs for v0.5.3 release 2011-05-17 21:36:49 -04:00
indexzero
9e36d2d2e6 [doc] Regenerate docco docs 2011-05-17 21:36:27 -04:00
indexzero
9c6c4b908b [fix test api] Only change Origin headers in WebSocket requests when the changeOrigin option is set explicitly. Added tests to ensure Origin and sec-websocket-origin headers match when proxying websockets. 2011-05-17 21:29:00 -04:00
indexzero
44a85664a8 [test] Continued work around Origin mismatch tests 2011-05-17 21:03:02 -04:00
indexzero
9ab54ab47f [test] Refined tests to begin checking Origin == Sec-Websocket-Origin 2011-05-17 20:25:45 -04:00
indexzero
6e679c8019 [test] Improve websocket tests to inspect outgoing and incoming HTTP headers to test origin mismatch bugs 2011-05-17 20:09:56 -04:00