Skip to content

Commit 8015393

Browse files
authored
Updated README for the proxyReq signature
According to [the doc](https://www.npmjs.com/package/http-proxy#listening-for-proxy-events) the `proxyReq` event gets ```http.ClientRequest proxyReq, http.IncomingMessage req, http.ServerResponse res, Object options)``` I just fixed the name of the first parameter
1 parent 2f515c8 commit 8015393

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ This middleware is implemented using the [`http-proxy`](https://www.npmjs.com/pa
4040
* Check the list of bindable events in the `http-proxy` specification.
4141
* @see https://www.npmjs.com/package/http-proxy#listening-for-proxy-events
4242
*/
43-
proxy.on('proxyReq', (proxyRes, req, res) => {
43+
proxy.on('proxyReq', (proxyReq, req, res) => {
4444
...
4545
});
4646
proxy.on('proxyRes', (proxyRes, req, res) => {

0 commit comments

Comments
 (0)