96 Commits

Author SHA1 Message Date
indexzero
5d6e6b9f78 [api] Expose adapted version of stack so it can be used with HttpProxy instances not created by httpProxy.createServer() 2011-08-28 01:49:41 -04:00
isaacs
be3a0d84a1 Handle cases where res.write throws 2011-08-28 01:49:37 -04:00
indexzero
5d0bbb38c3 [minor dist] Use pkginfo. Minor updates to variable scoping in .createServer() 2011-08-18 20:58:16 -04:00
Dominic Tarr
604ed2878d Merge branch 'patch-1' of https://github.com/KimSchneider/node-http-proxy
closes #80
Conflicts:
	lib/node-http-proxy.js
2011-08-03 00:06:08 +10:00
Dominic Tarr
e6ff8d6597 [api] merge middleware branch 2011-08-02 15:41:03 +10:00
Dominic Tarr
0f8fe8e246 [style] tidy 2011-08-02 15:33:03 +10:00
Dominic Tarr
20125889b3 [fix] do not use middleware code if it's not needed 2011-08-02 15:25:23 +10:00
indexzero
f7452bc42d [fix] Dont use res.* in proxyWebSocketRequest 2011-08-02 14:55:49 +10:00
indexzero
f0917a3f97 [minor] Style updates and whitespace cleaning for consistency 2011-08-02 14:55:49 +10:00
Dominic Tarr
8b48b7e0af [minor] code style changes 2011-08-02 14:51:37 +10:00
Dominic Tarr
7976de1121 support old (port,host) and (options) style when using middlewares 2011-08-02 14:51:36 +10:00
Dominic Tarr
c773eedeb6 [minor] add middleware to node-http-proxy 2011-08-02 14:51:36 +10:00
KimSchneider
2caa5d2b0d The number of maxSockets has to be set after the agent is created. Setting the property in the constructor does not work. 2011-08-01 13:22:30 +03:00
Dominic Tarr
b54666ff69 [minor] add middleware to node-http-proxy 2011-07-24 23:17:24 +10:00
Dominic Tarr
25c06a3a95 [fix] handler variable in createServer was global (!) 2011-07-23 05:40:29 -07:00
Dominic Tarr
e3d95ecab2 [minor] default enableXForwarded to true 2011-07-21 23:53:25 +10:00
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
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
b608a029f8 [minor] Add missing space 2011-06-23 04:34:47 -04:00
indexzero
887c5808c9 [refactor] Manage our own internal list of Agent instances 2011-05-25 00:48:44 -06: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
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
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
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
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
7bf0caef9f [fix] Change variable references for Websockets, bugs found from using wsbench 2011-05-19 00:37:18 -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
03b9087446 [doc minor] Update docs and code docs for v0.5.3 release 2011-05-17 21:36:49 -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
85223ea080 [fix] Manage bookkeeping for incoming requests to the underlying sockets behind reverse proxied websocket events. Only use the appropriate variables in the closure scope of the upgrade event from this bookkeeping 2011-05-13 17:53:14 -04:00
indexzero
40dc9dee2d Revert "Fixed "Invalid argument to getAgent" when proxying HTTP"
This reverts commit 642e15805dbd572835bb4fee9527e4f2da658833.
2011-05-10 15:29:03 -07:00
timmattison
642e15805d Fixed "Invalid argument to getAgent" when proxying HTTP 2011-04-26 12:27:24 -04:00
indexzero
ddf31b22ec [dist] Version bump. v0.5.0 2011-04-17 03:27:55 -04:00
indexzero
212009df6b [doc api] Update README.md and CHANGELOG.md for v0.5.0. Update bin/node-http-proxy to read files specified in config.https 2011-04-17 03:11:06 -04:00
indexzero
bf68dc30a5 [api test doc] Improve HTTPS support. Update minor documentation. Change tests accordingly. 2011-04-17 02:20:36 -04:00
indexzero
cfddd12e82 [api] Update .proxyRequest() and .proxyWebSocketRequest() APIs to take an options hash instead of a set of arguments. Add HTTPS support. 2011-04-16 23:08:40 -04:00
indexzero
b0b0183c2b [api] Update WebSocket support to use http.Agent APIs 2011-04-16 03:19:22 -04:00
indexzero
5681fc1a28 [api] Emit end event when done proxying 2011-04-15 21:09:54 -04:00
indexzero
a3cb527be5 [api] Update request event to be consistent by emitting both req and res. Add x-forwarded-for header. 2011-04-15 20:43:22 -04:00
indexzero
a89b3976b2 [api] Remove winston logging in favor of custom events 2011-04-15 20:22:22 -04:00
indexzero
a5d88aaacc [dist] Version bump. 0.4.2. Remove eyes dependency. 2011-04-13 17:24:22 -04:00