1213 Commits

Author SHA1 Message Date
Jarrett Cruger
21b30b754d [dist] Version bump. 1.9.1 v1.9.1 2015-04-01 12:09:42 -04:00
Jarrett Cruger
aa8f3e9a6e Merge pull request #798 from damonmcminn/master
Fix #747
2015-04-01 11:07:42 -04:00
Damon McMinn
ab37a224aa Fix https://github.com/nodejitsu/node-http-proxy/issues/747 2015-04-01 13:19:03 +01:00
Damon McMinn
d145152655 Add test for https://github.com/nodejitsu/node-http-proxy/issues/747 2015-04-01 13:14:11 +01:00
Jarrett Cruger
87a92a7280 [dist] Version bump. 1.9.0 v1.9.0 2015-03-12 18:59:32 -04:00
Jarrett Cruger
507f818df5 Merge pull request #792 from ashubham/master
Adding the nodejs0.12 auth option
2015-03-12 18:58:06 -04:00
ashubham
e907d7bb2a end of file line space 2015-03-12 15:17:26 -07:00
ashubham
7298510e91 space instead of tabs 2015-03-12 15:16:17 -07:00
ashubham
63c9262df5 space instead of tabs 2015-03-12 15:14:49 -07:00
ashubham
ff1626f071 added auth header test 2015-03-12 15:12:53 -07:00
ashubham
df158bfc53 added auth header test 2015-03-12 15:11:56 -07:00
ashubham
f55ffa356a auth header added tests 2015-03-12 13:40:49 -07:00
ashubham
ab5c3e5c81 auth header added 2015-03-12 13:15:06 -07:00
Jarrett Cruger
245d73ae6c Merge pull request #789 from feross/master
fix "x-forwarded-proto" in node 0.12 and iojs
2015-03-11 21:07:38 -04:00
Feross Aboukhadijeh
6d074eff47 fix "x-forwarded-proto" in node 0.12 and iojs
The way to detect TLSSockets in node 0.12 and iojs has changed. You can
just check `socket.encrypted` now :)

Fixes #772
2015-03-11 00:33:34 -07:00
Matt Hauck
26029ba7ac only rewrite redirect urls when it matches target
if functioning as a reverse proxy for host1.foo.com,
with a backend target of backend.foo.com:8080, the
node proxy should only rewrite the redirect if it is
a redirect to somewhere on backend.foo.com:8080
2015-03-09 13:17:52 -07:00
Matt Hauck
14415a5074 refactor some tests for greater readability 2015-03-09 11:49:28 -07:00
Matt Hauck
62e4b75101 Merge pull request #1 from matthauck/master
Add support for auto host rewriting and protocol rewriting
2015-02-05 12:33:10 -08:00
Matt Hauck
7f2f3ac35c Add support for auto host rewriting and protocol rewriting
auto host rewriting allows rewriting to work as expected in most
cases without extra cumbersome configuration

protocol rewriting allows node-http-proxy to be able to listen
over HTTPS and properly reverse-proxy to sites running over HTTP
(to avoid doing SSL twice)
2015-02-05 12:17:26 -08:00
Jarrett Cruger
9eefd4678e [api] add an ignorePath option if you want to disregard the path of the incoming request when proxying to the target server fixes #758 2014-12-23 13:22:49 -05:00
Jarrett Cruger
9ece52fac4 Merge pull request #756 from PanManAms/patch-1
changed highlighted part - very minor
2014-12-22 12:02:36 -05:00
PanManAms
32aa10dfe2 changed highlighted part - very minor 2014-12-20 15:40:46 +01:00
Charlie Robbins
c82c9ece8a Merge pull request #625 from bkochendorfer/master
Update README.md for benchmarks
2014-12-19 02:01:53 -07:00
Jarrett Cruger
3311106c2c [dist] Version bump. 1.8.1 v1.8.1 2014-12-17 10:11:42 -07:00
Alistair Jones
402ab05734 Pass HTTPS client parameters.
For more detailed control over HTTPS client behaviour, pass through the
parameters listed here:
http://nodejs.org/api/https.html#https_https_request_options_callback

The `rejectUnauthorized` parameter is omitted, because it overlaps with
the existing `secure` parameter:
https://github.com/nodejitsu/node-http-proxy/blob/master/README.md#using-https

Conflicts:
	test/lib-http-proxy-common-test.js
2014-12-17 10:09:29 -07:00
Jarrett Cruger
f0db5b3f70 [dist] Version bump. 1.8.0 v1.8.0 2014-12-17 00:58:17 -07:00
Jarrett Cruger
f30486195c [minor] grammar 2014-12-17 00:57:43 -07:00
Jarrett Cruger
ea0a4ded80 [fix] style spacing wtf 2014-12-17 00:53:51 -07:00
Jorge Leal
8a8a894092 Changed proxyServer and destiny to local variables. 2014-12-17 00:52:41 -07:00
Jorge Leal
c62610e8e4 Deprecated proxySocket event in favor to open event.
Maintained both proxySocket and open for backward compatibility.

Conflicts:
	test/lib-http-proxy-test.js
2014-12-17 00:52:19 -07:00
Jorge
05d18a4e1b Update README.md 2014-12-17 00:51:24 -07:00
Jorge Leal
8bff3ddc12 Added websocket close event test 2014-12-17 00:51:19 -07:00
Jorge
26537866b3 [api] add close event in ws-incoming.js 2014-12-17 00:51:06 -07:00
Charlie Robbins
f92a1b6839 Merge pull request #752 from ezhdan-sugarcrm/tests-fix
Fix variables scope in test
2014-12-13 14:34:45 -07:00
Eugene Zhdan
c1a94176a8 Fix variables scope in test 2014-12-13 21:45:14 +03:00
Arnout Kazemier
099eb86948 Merge pull request #751 from seanhussey/patch-1
Fix typo
2014-12-11 17:26:24 +01:00
Sean Hussey
4bd3c4671f Fix typo 2014-12-11 11:02:09 -05:00
Jarrett Cruger
6a330ff904 [dist] Version bump. 1.7.3 v1.7.3 2014-12-08 23:05:01 -05:00
Jarrett Cruger
89f9ca1e89 [test] show that we support protocol without the colon 2014-12-08 23:04:41 -05:00
Jarrett Cruger
c04485671a [fix] use simple regex instead of indexOf to check the protocol to support without the colon fixes #711 2014-12-08 23:04:23 -05:00
Jarrett Cruger
2086e4917c [dist] Version bump. 1.7.2 v1.7.2 2014-12-08 16:16:05 -05:00
Jarrett Cruger
71a06aab02 [test] add tests for the changeOrigin cases in properly setting the host header 2014-12-08 16:14:48 -05:00
Jarrett Cruger
501e8c2a9b [fix] properly include port in host header with changeOrigin in all cases fixes #750 2014-12-08 16:14:16 -05:00
Jarrett Cruger
81874f795b [dist] pin down deps and add requires-port 2014-12-08 16:11:28 -05:00
Charlie Robbins
75a9a2de61 Merge pull request #749 from kblanks/patch-1
Fix grammar in README.md
2014-12-03 04:51:11 -07:00
Kailan Blanks
aeb42a3614 Fix grammar in README.md 2014-12-03 11:49:19 +00:00
Jarrett Cruger
56a7b77645 [dist] Version bump. 1.7.1 v1.7.1 2014-12-02 10:28:04 -07:00
Jarrett Cruger
9c0b8697bc [fix] fix #738 2014-12-02 10:25:46 -07:00
Jarrett Cruger
410a8ce94c [test] add proper failing test case for #738 2014-12-02 10:25:30 -07:00
Jarrett Cruger
d98d9516ea [fix] simple fixes #748 #744 #746 2014-12-02 09:58:06 -07:00