Skip to content

Commit

Permalink
Clarify usable parameters for proxyRes event.
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyespo committed Aug 21, 2014
1 parent 05f0b89 commit 49a0de1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -216,8 +216,8 @@ proxy.on('error', function (err, req, res) {
//
// Listen for the `proxyRes` event on `proxy`.
//
proxy.on('proxyRes', function (res) {
console.log('RAW Response from the target', JSON.stringify(res.headers, true, 2));
proxy.on('proxyRes', function (proxyRes, req, res) {
console.log('RAW Response from the target', JSON.stringify(proxyRes.headers, true, 2));
});

```
Expand Down

0 comments on commit 49a0de1

Please sign in to comment.