Skip to content

Commit

Permalink
Merge pull request #686 from joeyespo/master
Browse files Browse the repository at this point in the history
Clarify usable parameters for 'proxyRes' event
  • Loading branch information
jcrugzz committed Aug 21, 2014
2 parents 05f0b89 + 49a0de1 commit d16062b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
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 d16062b

Please sign in to comment.