Sean Willis
bc6a23709c
Removing unnecessary check since this is a private API
2018-04-20 11:35:07 -04:00
Sean Willis
50f58b4cd9
Forgot 'i' flag when changing from regex shorthand to string.
2018-04-20 11:35:07 -04:00
Sean Willis
2c98416ac2
Adding ability to set cookie path
2018-04-20 11:35:07 -04:00
Jeremy Judeaux
1e52f660f0
cookieDomainRewrite option ( #1009 )
2016-08-12 13:42:18 -04:00
Ken
3a347af543
#866 Copy CA from options into outbound proxy ( #1042 )
...
While using secure: true for proxy connections, there is no way to pass the trusted root CA(s) or intermediate CA(s). This change allows that to be passed in the httpProxy createServer options and used for the outgoing proxy connection.
2016-08-11 12:20:35 -04:00
coderaiser
7bad3fbca4
fix(common) urlJoin replace: ":/" -> "http?s:/"
2016-01-29 02:47:12 -05:00
Torstein Thune
f2093b5313
No longer appends / to path if ignorePath is set
2016-01-13 09:16:50 +01:00
donasaur
eb97bf5423
Removed unspecified trailing slash in proxy url
2015-10-18 13:04:06 -07:00
Jarrett Cruger
0db8f195d7
Merge pull request #759 from nodejitsu/ignore-path
...
[api] add an ignorePath option if you want to disregard the path of the ...
2015-04-20 16:47:27 -04:00
Jeremy Judeaux
5f14bcaa70
fix protocol and default port detection on node 0.12.x, compatible with 0.10.x
2015-04-02 14:23:58 +02:00
Damon McMinn
ab37a224aa
Fix https://github.com/nodejitsu/node-http-proxy/issues/747
2015-04-01 13:19:03 +01:00
ashubham
df158bfc53
added auth header test
2015-03-12 15:11:56 -07:00
ashubham
ab5c3e5c81
auth header added
2015-03-12 13:15:06 -07: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
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
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
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
9c0b8697bc
[fix] fix #738
2014-12-02 10:25:46 -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
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
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
Ricky Miller
4a2b870cc9
do not modify the query string
2014-11-09 08:44:22 +09:00
Ming Liu
d1eabccf93
websocket needs to respect options.secure too
2014-11-04 15:06:45 -08:00
Alex Oshchepkov
796ab0bcc5
Added changeOrigin option with test and docs
2014-10-29 07:25:19 +05:00
Jarrett Cruger
e7d50b1a37
[minor] extra space
2014-09-25 22:11:12 -04:00
Jarrett Cruger
c0a796b3e3
[fix] perf optimization so we have a precompiled regexp
2014-09-17 07:53:18 -04:00
MinRK
65a21bce6d
use regex to check for upgrade header
...
in websocket connections
2014-09-16 12:07:15 -07:00
MinRK
51eeebef68
handle 'upgrade' in comma-separated connection header
...
Firefox sends `keep-alive, upgrade`, not just `upgrade`,
which the proxy incorrectly turned into `close`
2014-09-16 11:15:17 -07:00
Arnout Kazemier
73e8a4cdd5
[minor] Added missing JSDoc comments
2014-09-12 19:21:12 +02: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
ed73f06ed3
[fix] ensure path works on windows because path.join doesnt like URLs
2014-09-12 07:50:16 -04:00
Jarrett Cruger
9a534c6ff6
[api] add prependPath option to go with path change
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
Domi
511b7b3d47
Fix proxy path
...
This fix considers the actual target path again (which has been ignored).
2014-09-08 15:57:53 -05: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
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
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
cronopio
fd42dcef01
[tests] https test pass, fix #511 . Exposed the rejectUnauthorized flag
2013-11-07 15:09:37 -05:00
indexzero
bb0d28c587
[refactor minor] s/caronte/http-proxy/ or s/caronte/httpProxy/ where appropriate.
2013-09-26 03:37:08 -04:00