Skip to content

Commit

Permalink
Fix for #417
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeal committed Jan 18, 2013
1 parent b638185 commit 53c1508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ Request.prototype.init = function (options) {
if (self._aborted) return

if (self.setHost) delete self.headers.host
if (self.req._reusedSocket && error.code === 'ECONNRESET'
if (self.req && self.req._reusedSocket && error.code === 'ECONNRESET'
&& self.agent.addRequestNoreuse) {
self.agent = { addRequest: self.agent.addRequestNoreuse.bind(self.agent) }
self.start()
Expand Down

0 comments on commit 53c1508

Please sign in to comment.