1202 Commits

Author SHA1 Message Date
Li Bin
806e4927c9 fix reverse-proxy example require path (#1067) 2019-08-22 02:34:29 -05:00
Subomi Oluwalana
c8fa599983 Update README.md (#970)
There were errors in the examples highlighted, check issue #969
2019-08-22 02:31:44 -05:00
renovate[bot]
0d9ed366b1 [dist] Update dependency request to ~2.88.0 [SECURITY] (#1357) 2019-08-22 02:30:06 -05:00
renovate[bot]
9d75b981a1 [dist] Update dependency eventemitter3 to v4 (#1365) 2019-08-22 02:29:37 -05:00
renovate[bot]
192b2b980b [dist] Update dependency colors to v1 (#1360) 2019-08-22 02:29:14 -05:00
renovate[bot]
4a657a7126 [dist] Update all non-major dependencies (#1356) 2019-08-22 02:24:41 -05:00
renovate[bot]
7a154f81d1 [dist] Update dependency agentkeepalive to v4 (#1358) 2019-08-22 02:24:25 -05:00
renovate[bot]
749eec65c3 [dist] Update dependency nyc to v14 (#1367) 2019-08-22 02:21:15 -05:00
renovate[bot]
e588213644 [dist] Update dependency concat-stream to v2 (#1363) 2019-08-22 02:16:50 -05:00
indexzero
59c4403e9d [fix] Latest versions. 2019-08-22 02:12:51 -05:00
indexzero
dd1d08b631 [fix test] Update tests. 2019-08-22 02:12:51 -05:00
indexzero
16d4f8a951 [dist] Regenerate package-lock.json. 2019-08-22 02:12:51 -05:00
indexzero
fc93520d74 [dist] .gitattributes all the things. 2019-08-22 02:12:51 -05:00
indexzero
7e4a0e511b [dist] New test fixtures. 2019-08-22 02:12:51 -05:00
indexzero
a9b09cce43 [dist] End of an era. 2019-08-22 02:12:51 -05:00
Renovate Bot
b00911c937 [dist] Update dependency ws to v3 [SECURITY] 2019-08-22 02:12:51 -05:00
Jaggernoth
36bfe566a7 x-forwarded-host overwrite for mutli level proxies (#1267)
With more than 1 proxy the original host was lost, now it will be passed down the proxy chain
2019-08-22 02:09:26 -05:00
Charlie Robbins
91fee3e943
[refactor doc] Complete rename to http-party org. (#1362) 2019-08-22 01:46:16 -05:00
Justin Russell
235f0aa047 Highlight correct lines for createProxyServer (#1117) 2019-08-22 01:41:47 -05:00
Stein Martin Hustad
acdbec09c6 Fix docs for rewrite options - 201 also handled (#1147)
Updates options documentation for location rewrite to include 201 responses. See #1024
2019-08-22 01:40:03 -05:00
Marcin K
569e2ac4fb Update .nyc_output (#1339)
Currently published version includes .nyc_output and coverage
2019-08-22 01:39:17 -05:00
renovate[bot]
cb3171abfa Configure Renovate (#1355)
* Add renovate.json

* [dist] Configure renovate more.
2019-08-22 01:38:48 -05:00
任侠
a3fe02d651 [examples] Restream body before proxying, support for Content-Type of application/x-www-form-urlencoded (#1264) 2018-06-06 12:39:50 -04:00
Jarrett Cruger
42e8e1e099 1.17.0 1.17.0 2018-04-20 11:42:55 -04:00
Jarrett Cruger
e94d52973a [dist] doc updates 2018-04-20 11:35:07 -04:00
Jarrett Cruger
4a37175a52 [test] add test for selfHandleRequest and remove modifyResponse as selfHandleRequest is the only way that functionality works 2018-04-20 11:35:07 -04:00
guoxiangyang
e5c02b8a8a add support for modify response 2018-04-20 11:35:07 -04:00
Jake Furler
2c44039a7c issue #953: stop using writeHead
object.keys in web-incoming.js results in a non-deterministic ordering of keys, which means that in web-outgoing writeHead might be called before setHeader, which throws an error
2018-04-20 11:35:07 -04:00
Thiago Bustamante
8097ae237e Fix "Can't set headers after they are sent" errors
This PR tries to fix "Can't set headers after they are sent" errors.
That are a lot of situations where this error can occurs. In my case, it is happening because I have others middlewares (in an expressjs application that tries to proxy requests). Some of those middlewares (like [passportjs](http://passportjs.org/), or [cors](https://www.npmjs.com/package/cors)) can run ```res.end()``` and when the proxy receive a response, it is already finished.
So, it is necessary to test if we can write on the user response when the proxy response is ready.
I think it could also fix #930, #1168, #908
2018-04-20 11:35:07 -04:00
Jarrett Cruger
abf882e03c [dist] update package-lock.json 2018-04-20 11:35:07 -04:00
Gustav Tiger
bab02e909e Include websocket non-upgrade response
When the server do not accept the upgrade request for websockets the
server's response was previously not included and sent back. Now the
proxy will include the response in these cases. Fixes #890.
2018-04-20 11:35:07 -04:00
n30n0v
c9a556cfa5 Add followRedirects option 2018-04-20 11:35:07 -04:00
Jon Hunter
6f88caf6e4 Add detail about "buffer" option 2018-04-20 11:35:07 -04:00
Radu Serbanescu
d2f9db8241 Add use case for proxy to HTTPS using a PKCS12 client certificate 2018-04-20 11:35:07 -04:00
carpsareokiguess
8231984fb0 fix small typos in README 2018-04-20 11:35:07 -04:00
Jarrett Cruger
81d58c531b [test] for override method feature 2018-04-20 11:35:07 -04:00
Jarrett Cruger
d533a1be43 [dist] document the feature 2018-04-20 11:35:07 -04:00
shaohui.tsh
89f9ef87e0 feat: 添加response自处理参数 2018-04-20 11:35:07 -04:00
Aydin
c5d8466483 Update common.js
Add method parameter to options for overriding the proxy-outgoing HTTP-method
2018-04-20 11:35:07 -04:00
jlaamanen
107c18720c Added timeout option to docs 2018-04-20 11:35:07 -04:00
Jarrett Cruger
de1b80851a [fix] slightly more tolerant 2018-04-20 11:35:07 -04:00
Sean Willis
bc6a23709c Removing unnecessary check since this is a private API 2018-04-20 11:35:07 -04:00
Sean Willis
f5c2381395 Updating docs and adding more tests. 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
Jarrett Cruger
543636d0f6 [fix] move badges 2018-04-20 11:35:07 -04:00
Jarrett Cruger
a4bccc332d [dist][test] codecov config 2018-04-20 11:35:07 -04:00
Jarrett Cruger
f4ff1006b9 [wip] proper tests and reporting 2018-04-20 11:35:07 -04:00
Jarrett Cruger
09dcb98456 [dist] make tests work reliably, add package-lock.json 2018-04-20 11:35:07 -04:00
Georgi Yordanov
812757541d Fix overwriting of global options (#1074) 2018-01-02 19:48:17 -05:00