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
koolc
70ed1c4273
[Bugfix] Allow for multiple ? in outgoing urls.
...
Without this fix urls that had multiple ? in them would drop sections
of the url since before there was an assumption of there only being one.
2014-12-01 12:34:16 -05:00
Jarrett Cruger
361d4e3b00
Merge pull request #716 from No9/master
...
Adding harmon to the README
2014-11-28 12:02:39 -05:00
Jarrett Cruger
276f65a3b8
[dist] Version bump. 1.7.0
v1.7.0
2014-11-25 17:31:28 -05:00
Jarrett Cruger
8d68ac0e0f
[fix] be defensive and ensure location is in headers before running url.parse()
2014-11-25 17:22:23 -05:00
Jarrett Cruger
48ae5d828c
[minor] style consistency
2014-11-25 17:21:24 -05:00
Jarrett Cruger
95a588706b
Merge pull request #741 from samccone/sjs/redirect-host-rewrite
...
Allow optional redirect host rewriting.
2014-11-25 17:08:54 -05:00
Jarrett Cruger
3194d819b4
Merge pull request #742 from jugglinmike/option-content-length
...
Set `Content-Length` header for OPTIONS requests
2014-11-25 11:15:46 -05:00
Mike Pennisi
8a24a1e18f
Set Content-Length header for OPTIONS requests
...
Web browsers automatically issue an OPTIONS request in advance of other
HTTP requests when the document's domain does not match the target in
order to facilitate Cross-Origin Resource Sharing. These requests are
forbidden from specifying a body and typically do not specify an
(unecessary) `Length` header.
Node.js automatically adds the `Content-Encoding: chunked` header value
to requests that do not specify a `Length` header. This makes proxied
OPTIONS requests from web browsers invalid.
Explicitly set the `Content-Length` header of all `OPTIONS` requests to
"0", disabling the default "chunked" encoding behavior [2].
[1] http://www.w3.org/TR/cors/
[2] http://nodejs.org/api/http.html
2014-11-24 17:14:48 -05:00
Sam Saccone
add81338a9
📝 Add host rewrite docs and specs.
2014-11-23 19:22:07 -05:00
Sam Saccone
daf66a7a88
Allow optional redirect host rewriting.
2014-11-23 19:22:07 -05:00
Jarrett Cruger
aba505d159
Merge pull request #736 from richardkazuomiller/copy-headers
...
copy headers instead of referencing them so they don't unexpectedly get overwritten
2014-11-12 16:46:51 -05:00
Ricky Miller
84036e9ddd
style changes
2014-11-13 06:05:32 +09:00
Ricky Miller
daa2ce0ee3
copy headers instead of referencing them so they don't unexpectedly get overwritten
2014-11-13 04:37:45 +09:00
Jarrett Cruger
69a693034e
Merge pull request #735 from jleal52/master
...
Updated to support error callback on proxy.web and start/proxyReq/end co...
2014-11-12 13:05:04 -05:00
jleal52
9ba8311343
Updated to support error callback on proxy.web and start/proxyReq/end continue working.
2014-11-12 14:41:46 +00:00
Jarrett Cruger
709b3e9656
[dist] Version bump. 1.6.2
v1.6.2
2014-11-11 11:47:43 -05:00
Jarrett Cruger
3f19e6e178
[minor] this shouldnt be in var block
2014-11-11 11:47:15 -05:00
Jarrett Cruger
7c5e40a429
[fix] style changes
2014-11-10 23:02:43 -05:00
Jarrett Cruger
eb95660822
Merge pull request #733 from richardkazuomiller/double-slash-fix
...
do not modify the query string
2014-11-10 22:29:16 -05:00