Skip to content

Commit

Permalink
Added redirect event
Browse files Browse the repository at this point in the history
  • Loading branch information
Cauldrath committed Mar 29, 2013
1 parent 9e1a5dc commit 8aa13cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,9 @@ Request.prototype.onResponse = function (response) {
delete self.headers['content-type']
delete self.headers['content-length']
}

self.emit('redirect');

self.init()
return // Ignore the rest of the response
} else {
Expand Down

0 comments on commit 8aa13cd

Please sign in to comment.