Damian Kaczmarek
0f243516e1
Added targetTimeout option and two tests for timeout
2014-06-10 01:35:53 +02:00
Bryce Gibson
1213e46b1b
Add the req and res objects to the proxyRes event
2014-05-12 08:22:54 +10:00
Jarrett Cruger
ccad177954
[minor] style
2014-05-11 01:02:35 -04:00
Jay Harris
d637b96420
Don't override connection header if Upgrading
2014-05-09 20:48:30 -04:00
Jarrett Cruger
77a1cff9bc
[fix] handle error on incoming request as well and properly abort proxy if client request is aborted
2014-04-14 13:08:10 -04:00
Jarrett Cruger
4f07dc220d
[fix] let user make the decision on what to do with the buffer
2014-04-10 20:02:46 -04:00
Jarrett Cruger
8b48a9fdab
[api] emit a start an an end event
2014-04-09 13:38:13 -04:00
Jarrett Cruger
c6b7a7919f
[fix] always be an eventemitter for consistency fixes #606
2014-04-09 13:37:27 -04:00
Jarrett Cruger
5251a238e7
Merge branch 'customizeOutgoingAddress' of github.com:sberan/node-http-proxy into sberan-customizeOutgoingAddress
...
Conflicts:
lib/http-proxy.js
lib/http-proxy/common.js
2014-03-26 22:30:11 -04:00
Jarrett Cruger
89a22bc003
[fix] set connection to CLOSE in cases where the agent is false.
2014-03-26 22:07:09 -04:00
Jarrett Cruger
a7b16eb136
[api] add toProxy method to allow absolute URLs to be sent when sending to another proxy fixes #603
2014-03-26 21:59:10 -04:00
Alexander
99f757251b
Fix for #591
...
Fix for proxy crash if `HOST` header is not defined bug https://github.com/nodejitsu/node-http-proxy/issues/591 .
2014-02-26 15:12:38 +02:00
Sam Beran
e633b0f7e4
Add support for localAddress
...
When we make outgoing requests, we may want to bind to a specific local
address. This change allows the localAddress property to be specified
via the options object.
2014-02-11 15:01:03 -06:00
David Glasser
4c3ba74c4e
Close outgoing ws if incoming ws emits error
...
Fixes #559 , which contains a full reproduction recipe.
2014-01-28 13:58:09 -05:00
Jarrett Cruger
daad4703f3
[fix] replicate node core behavior and throw an error if the user does not add their own error listener
2014-01-28 12:32:43 -05:00
David Glasser
0b223abb65
Fix argument order for ws stream pass
...
head and error handling was broken before this commit.
2014-01-22 15:28:23 -08:00
p-a-c-o
96ea631fb6
Extend listen to enable IPv6 support.
2014-01-21 20:35:49 +01:00
alevicki
c5ec1836b2
Fix before and after type check
2014-01-20 10:24:53 -06:00
yawnt
e936d186b6
[fix] closes #555
2014-01-19 11:49:26 +01:00
yawnt
689459fe46
typo
2014-01-17 22:18:54 +01:00
yawnt
53a2653b5e
[fix] closes #553
2014-01-17 22:18:20 +01:00
yawnt
d23353d980
[fix] ee3 error handling
2014-01-16 15:05:52 +01:00
yawnt
4351ed1c86
[fix] closes #547
2014-01-16 15:03:44 +01:00
Mike Moulton
969a623542
Only emit response if a valid server is present
2014-01-14 00:45:42 -07:00
Jarrett Cruger
c47adac391
[fix] add type to before and after to grab correct passes, fixes #537
2013-12-29 16:00:30 -05:00
yawnt
162a42f58f
[fix] legacy
2013-12-20 21:33:49 +01:00
yawnt
9e74a633a7
[fix] closes #529
2013-12-18 12:45:41 +01:00
yawnt
97e4600e94
[fix] fixes #341
2013-12-18 12:33:23 +01:00
yawnt
10c0f11b68
[fix] remove duplicate
2013-11-19 20:05:46 +01:00
Ben Firshman
cb7af4f4d7
Fix websocket error handing
...
Websockets have sockets, not responses.
2013-11-18 23:06:56 +00:00
yawnt
961d2f9400
[fix] support target and forward
2013-11-08 20:56:26 +01:00
cronopio
fd42dcef01
[tests] https test pass, fix #511 . Exposed the rejectUnauthorized flag
2013-11-07 15:09:37 -05:00
yawnt
d0862aff0c
[fix] merge #495 , thanks @glasser
2013-11-07 19:13:09 +01:00
yawnt
590bb604da
[fix] _ because it is unused
2013-11-07 19:00:01 +01:00
Jarrett Cruger
b8c6397a94
[fix] pass proper options object that extend the global options and parse the per proxy args into options. fixes #510
2013-11-05 16:30:39 -05:00
yawnt
dda6f7a45a
[feature] add emit proxyRes
2013-11-05 17:44:04 +01:00
yawnt
1204a35e46
[fix] support buffer
2013-10-29 18:12:23 +01:00
yawnt
e3f8d5fdbe
[feature] add buffer support
2013-10-26 17:20:30 +02:00
cronopio
02df9a33c5
[fix] fix the correct order of arguments in ws-incoming passes
2013-10-21 23:22:32 -05:00
cronopio
cc09ae6a34
[fix] use the correct arguments order
2013-10-21 21:19:52 -05:00
mmoulton
0bfb9be418
Fixed issue where error callback would not invoke, including new test cases. Added req/res values to error events.
...
Conflicts:
lib/http-proxy/passes/web-incoming.js
2013-10-21 17:36:20 -05:00
cronopio
5e130de854
Revert "[fix] fixed passes functions, now 'this' can be used and options are stored on 'this.options'"
...
This reverts commit 9b3e1eb247df29d18ea299ff4ebb2f10eeb71269.
2013-10-21 14:49:39 -05:00
cronopio
babdf531fe
Revert "[fix] fixed options and server reference to can access them from passes functions"
...
This reverts commit 90fb01d38ac5af7ef395547b24e985b6f63b4abc.
2013-10-21 14:45:03 -05:00
cronopio
2bf20d61d5
Revert "[tests] fix test to use the new way to pass options"
...
This reverts commit 52ecd52ee5aa78603e44ba8d5ff9187410351622.
2013-10-21 14:44:49 -05:00
cronopio
52ecd52ee5
[tests] fix test to use the new way to pass options
2013-10-21 03:59:14 -05:00
cronopio
9b3e1eb247
[fix] fixed passes functions, now 'this' can be used and options are stored on 'this.options'
2013-10-21 03:46:30 -05:00
cronopio
90fb01d38a
[fix] fixed options and server reference to can access them from passes functions
2013-10-21 03:26:54 -05:00
cronopio
c65ffbb976
[tests] fixed inherits problem and listen for the correct event
2013-10-09 12:40:05 -05:00
cronopio
a7042132c8
[tests] fixing tests, fixed some typos and changed how passes are stored
2013-10-09 12:00:42 -05:00
cronopio
b333e63648
[tests] fixing minor typos
2013-10-09 11:04:41 -05:00