558 Commits

Author SHA1 Message Date
yawnt
58acf28073 [fix] better reading 2013-06-12 18:53:36 +02:00
yawnt
405cc454c8 [fix] refactor 2013-06-12 18:52:14 +02:00
yawnt
adb6763194 [fix] typo 2013-06-12 18:47:32 +02:00
yawnt
5b570e1215 [refactor] clean up 2013-06-12 18:44:11 +02:00
yawnt
27d23592d1 [fix] remove old legacy code 2013-06-12 18:26:33 +02:00
yawnt
374eb9334b [fix] remove boilerplate 2013-06-12 18:23:27 +02:00
indexzero
5a1e20a6d2 [refactor] Start work on major refactor for streams2 and node@0.10.x. 2013-04-26 20:13:20 -04:00
indexzero
de0928f616 [dist] Version bump. 0.10.2 v0.10.2 2013-04-21 17:06:54 -04:00
indexzero
7fc39d77f4 [minor] Strip trailing whitespace. 2013-04-21 17:02:18 -04:00
indexzero
59b71c033f [minor] Style compliance. Fixes #402. 2013-04-21 17:01:20 -04:00
Ivan Jaramillo
985025c90f Add headers on 'handshake'
The headers in the 'handshake' event were not written to the socket, the client received data but not the headers.
2013-04-21 16:59:08 -04:00
Charlie Robbins
98f5c462ea Merge pull request #407 from GUI/master
Correct keep-alive responses to HTTP 1.0 clients
2013-04-21 13:25:35 -07:00
Nick Muerdter
daf53bd753 Don't test raw HTTP 1.0 requests over HTTPS. 2013-04-18 18:11:58 -06:00
Nick Muerdter
a29b5e8e28 Correct keep-alive responses to HTTP 1.0 clients.
Since the proxy requests comes from NodeJS's HTTP 1.1 request client, a
backend server may default to setting Connection: keep-alive in its
response. However, the real HTTP 1.0 client may not be able to
handle that.

Force HTTP 1.0 client's to Connection: close, unless the client
explicitly supports keep-alive.
2013-04-18 16:33:10 -06:00
indexzero
9c13ad46e4 [dist] Version bump. 0.10.1 v0.10.1 2013-04-12 04:55:26 -04:00
Charlie Robbins
3763dc935f Merge pull request #370 from jmatthewsr-ms/master
Fix for slab buffer retention, leading to large memory consumption
2013-04-09 11:02:56 -07:00
indexzero
71183bf30b [dist] Version bump. 0.10.0 v0.10.0 2013-03-18 01:53:12 -04:00
indexzero
8665f3cc60 [dist] Update CHANGELOG.md 2013-03-18 01:53:03 -04:00
Charlie Robbins
4335f49b0e Merge pull request #385 from nodejitsu/breaking-proxy-response
Change the emitter of the `proxyResponse` event
2013-03-17 22:51:50 -07:00
Charlie Robbins
ea10bb22d9 Merge pull request #383 from thefosk/master
Fixing a bug that generates an unexpected TypeError
2013-03-17 22:50:17 -07:00
indexzero
2620f06e2d [fix breaking] Emit the proxyResponse event on the HttpProxy instance to reduce listener churn and reference counts. 2013-03-18 01:49:01 -04:00
Charlie Robbins
3ebc795c33 Merge pull request #384 from No9/master
Mention Harmon used for response modifications in the readme
2013-03-16 07:56:26 -07:00
No9
4e42354e77 Harmon messsage 2013-03-16 12:17:54 +00:00
No9
35ba0db554 Harmon messsage 2013-03-16 12:17:35 +00:00
thefosk
c9b6895c5e Fixing the if statement as it lead to 'TypeError: Parameter 'url' must be a string, not undefined' in certain cases 2013-03-14 19:09:03 -07:00
indexzero
701dc698e3 [dist] Version bump. 0.9.1 v0.9.1 2013-03-09 05:09:18 -05:00
indexzero
ea5e214522 [dist doc] Updated CHANGELOG.md for v0.9.1 2013-03-09 05:09:10 -05:00
indexzero
c78356e9cf [breaking] Ensure that webSocketProxyError also receives the error to be consistent with proxyError events. 2013-03-09 05:08:55 -05:00
indexzero
c68e038912 [dist] Version bump. 0.9.0 v0.9.0 2013-03-09 04:59:53 -05:00
indexzero
133115c976 [doc dist] Update CHANGELOG.md for v0.9.0. 2013-03-09 04:59:41 -05:00
indexzero
ad213106d0 [dist] Update devDependencies 2013-03-09 04:59:19 -05:00
indexzero
ea0587a8f9 [minor] Small whitespace compliance. 2013-03-09 04:42:07 -05:00
indexzero
5d515e4728 [api test] Manually merge #195 from @tglines since that fork was deleted. Update tests to use new macros. Fixes #195. Fixes #60. 2013-03-09 04:20:05 -05:00
Mikkel Garcia
5e6be6ccf5 [doc] added comments to pathnameOnly block. 2013-03-09 03:18:15 -05:00
Mikkel Garcia
a1607c1684 pathnameOnly option documented in the Readme.md 2013-03-09 03:18:11 -05:00
Mikkel Garcia
46b078a98d pathnameOnly flag added. Ignores hostname and applies routing table to the paths being requested. 2013-03-09 03:18:07 -05:00
Niall O'Higgins
10f6b05775 add support for loading CA bundles
fix loop

typo

another typo *sigh*

this wasn't doing what I thought it was doing.
2013-03-09 03:12:58 -05:00
Niall O'Higgins
2c3650746c problem: don't want to run my server as root to bind to privileged ports (e.g. 80, 443).
solution: support privilege drop after socket bind via new --user <username> parameter.
2013-03-09 03:12:52 -05:00
pdoran
89d43c20dd Added timeout option and test to test new timeout parameter, added requestFail assertion. 2013-03-09 03:04:29 -05:00
indexzero
476cbe741f [minor] Move private helper to end of file. 2013-03-09 02:44:46 -05:00
indexzero
9be0af3166 [fix] Set "content-length" header to "0" if it is not already set on DELETE requests. Fixes #338. 2013-03-09 02:44:28 -05:00
indexzero
a89e2f2688 [fix] Do not use "Transfer-Encoding: chunked" header for proxied DELETE requests with no "Content-Length" header. Fixes #373. 2013-03-09 02:40:09 -05:00
indexzero
6a278b3dd8 [fix] http-proxy should not modify the protocol in redirect request for external sites. Fixes #359. 2013-03-09 02:35:50 -05:00
indexzero
3130665d9f [fix] Emit notFound event when ProxyTable location does not exist. Fixes #355. Fixes #333. 2013-03-09 02:29:58 -05:00
indexzero
4c1a2c1416 [fix] Make options immutable in RoutingProxy. Fixes #248. 2013-03-09 02:21:31 -05:00
colinmollenhour
b1c4bd61e8 Remove data event that is not needed after-all. 2013-03-09 01:48:42 -05:00
Colin Mollenhour
3b86a7aae3 Add 'proxyResponse' event so observer can modify response headers or abort response. 2013-03-09 01:48:37 -05:00
Colin Mollenhour
4c130f5dac Allow event observers to access upstream response headers and data. 2013-03-09 01:48:29 -05:00
indexzero
9cecd97153 [minor] s/function(/function (/ s/){/) {/ 2013-03-09 01:43:25 -05:00
indexzero
440013c263 [fix doc] Fix bad variable reference in README.md. 2013-03-09 01:36:57 -05:00