MinRK
ec683b924b
test new detection of connection: upgrade
2014-09-16 12:09:26 -07:00
Samuel Reed
73d865bc9f
Fix breaking bug on url joining resulting in paths like ///path.
...
Added OS-agnostic url join helper.
2014-09-12 13:08:10 -04:00
Jarrett Cruger
e44fabe58a
[test] add test for prependPath option
2014-09-11 18:51:49 -04:00
Sean Massa
a65021d52b
fix tests for maintaining proxy path
2014-09-08 17:17:15 -05:00
John Catron
a3d02196c5
Added close method to proxy server.
...
Ensured server exists before closing.
Updated tests to use new close function.
Added documentation to README.
2014-08-14 17:30:38 +00:00
Manu Sporny
db5f2954b2
[api] Add event-based ability to modify pre-flight proxy requests.
2014-07-18 11:46:04 -04:00
Damian Kaczmarek
7b79a7409a
Change name targetTimeout to proxyTimeout
2014-06-10 19:04:12 +02:00
Damian Kaczmarek
4193d3bd74
Fix #657
2014-06-10 01:50:59 +02:00
Damian Kaczmarek
0f243516e1
Added targetTimeout option and two tests for timeout
2014-06-10 01:35:53 +02:00
Bryce Gibson
1385635e18
Add a test for the proxyRes event
2014-05-12 08:44:02 +10:00
Jay Harris
8aa7c519b1
Adding test cases on preventing upgrade override
2014-05-09 22:49:23 -04:00
Jarrett Cruger
61c8734e8b
[fix test] handle proxy error since we are properly aborting the proxy Request
2014-04-14 13:17:18 -04: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
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
cronopio
d83fdf69a1
[tests] disabled the examples-test by now
2013-12-18 12:18:59 -05:00
cronopio
bc236d7e95
[tests] Added a test case for run all the examples
...
* I changed all the ports across examples to be different and can run at same time
2013-12-18 12:18:58 -05:00
cronopio
cfd417de23
[tests] fix tests set correct host headers
2013-12-18 12:17:41 -05:00
cronopio
c4d56a5faf
[tests] fix test using undefined url
2013-12-18 11:50:49 -05:00
yawnt
10c0f11b68
[fix] remove duplicate
2013-11-19 20:05:46 +01:00
cronopio
bbe3bfdf98
[tests] added test HTTPS to HTTP using own server
2013-11-07 21:27:50 -05:00
cronopio
31d919b0a3
[tests] added HTTPS to HTTPS test
2013-11-07 18:06:51 -05:00
cronopio
fd42dcef01
[tests] https test pass, fix #511 . Exposed the rejectUnauthorized flag
2013-11-07 15:09:37 -05:00
cronopio
a2b1f0a4c9
[tests] disable test, by now is not throwing without options
2013-11-07 15:06:45 -05:00
cronopio
8085178dc2
[tests] Using target field, tests now pass. We are missing the tests using forward field
2013-10-29 16:46:27 -05:00
cronopio
33a2462d28
[wip] Initial HTTPS->HTTP test, updated https-secure example. Work in progress, need to add more https tests
2013-10-28 13:18:21 -05:00
cronopio
920f1e7707
[tests] this test is already in web-incoming tests
2013-10-22 16:09:11 -05:00
cronopio
c75d06c5f9
[tests] now each test use a different port to avoid some slow opening and closing ports
2013-10-22 15:57:52 -05:00
cronopio
d60353f80b
[tests] tests fixed
2013-10-21 23:22:59 -05:00
cronopio
881c7e62e0
[tests] this file is not necessary anymore
2013-10-21 21:22:39 -05:00
cronopio
7c72f3b407
[tests] move contributions of @mmoulton to correct place
2013-10-21 21:11:19 -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
5d66ce11bb
[fix] minor typo
2013-10-21 14:51:45 -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
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
1d1ee88582
[tests] the options got a problem and this test probe that timeout is not being set
2013-10-21 03:25:47 -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
c9f5772fc1
[tests] remove caronte and use http-proxy for file names
2013-10-09 10:49:13 -05:00
indexzero
bb0d28c587
[refactor minor] s/caronte/http-proxy/ or s/caronte/httpProxy/ where appropriate.
2013-09-26 03:37:08 -04:00
srossross
39b0c46a69
TEST: added agent and header tests
2013-09-17 15:29:48 -07:00
srossross
a350fadea6
FIX: tests. still need to add more tests tho
2013-09-17 15:06:22 -07:00
yawnt
ca092635e7
[test] remove chunked on http1.0
2013-09-17 16:32:55 +02:00
yawnt
16a4d9da11
[test] added tests for web-outgoing.js
2013-09-17 11:20:18 +02:00
cronopio
10a0db4f0d
[tests] added test for socket.io proxying
2013-09-16 21:37:49 -05:00
cronopio
02007ed0fb
[tests] added tests for websockets
2013-09-16 20:59:10 -05:00
cronopio
7e25bded27
[tests] removed unused tests
2013-09-16 19:04:49 -05:00
cronopio
dc9d7e5452
[tests] drop the test of own streams, moved the usable tests
2013-09-16 18:59:48 -05:00
cronopio
1cb967b90a
[tests] fixed according new refactor and added test to common.setupSocket()
2013-09-16 17:27:06 -05:00