977 Commits

Author SHA1 Message Date
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
Ricky Miller
4a2b870cc9 do not modify the query string 2014-11-09 08:44:22 +09:00
Jarrett Cruger
fa797fca90 [dist] Version bump. 1.6.1 v1.6.1 2014-11-04 18:14:09 -05:00
Jarrett Cruger
57329b6327 Merge pull request #729 from lightblade/master
websocket needs to respect `options.secure` too
2014-11-04 18:13:26 -05:00
Ming Liu
d1eabccf93 websocket needs to respect options.secure too 2014-11-04 15:06:45 -08:00
Jarrett Cruger
60bd697051 Merge pull request #724 from whitecolor/change-origin-option
changeOrigin option docs fix
2014-10-29 10:52:10 -04:00
Alex Oshchepkov
1af8224cc1 changeOrigin option docs fix 2014-10-29 08:09:43 +05:00
Jarrett Cruger
43641b00b3 [dist] Version bump. 1.6.0 v1.6.0 2014-10-28 22:53:54 -04:00
Jarrett Cruger
70fa8ad58c Merge pull request #723 from whitecolor/change-origin-option
Added changeOrigin option with test and docs
2014-10-28 22:52:50 -04:00
Alex Oshchepkov
796ab0bcc5 Added changeOrigin option with test and docs 2014-10-29 07:25:19 +05:00
Charlie Robbins
f70015f001 Merge pull request #717 from waded/patch-1
I presume you mean couchdb here
2014-10-15 01:35:41 -04:00
Wade Dorrell
f64954a08b I presume you mean couchdb here 2014-10-14 22:49:33 -06:00
no9
9f684d0439 harmon notes 2014-10-15 01:52:27 +01:00
Jarrett Cruger
3768cce4ca Merge pull request #712 from zhudan/master
update modify request body eg
2014-10-09 09:48:08 -04:00
dan
d46e876e27 update modify request body eg 2014-10-09 14:33:04 +08:00
dan
0378b03e53 update modify request body eg 2014-10-09 14:32:52 +08:00
dan
04c45a022c update modify request body eg 2014-10-09 14:30:11 +08:00