Skip to content

Commit 49a0de1

Browse files
committed
Clarify usable parameters for proxyRes event.
1 parent 05f0b89 commit 49a0de1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ proxy.on('error', function (err, req, res) {
216216
//
217217
// Listen for the `proxyRes` event on `proxy`.
218218
//
219-
proxy.on('proxyRes', function (res) {
220-
console.log('RAW Response from the target', JSON.stringify(res.headers, true, 2));
219+
proxy.on('proxyRes', function (proxyRes, req, res) {
220+
console.log('RAW Response from the target', JSON.stringify(proxyRes.headers, true, 2));
221221
});
222222

223223
```

0 commit comments

Comments
 (0)