Skip to content

Commit

Permalink
Fix setTimeout support.
Browse files Browse the repository at this point in the history
Fixes #25.
  • Loading branch information
RubenVerborgh committed Oct 23, 2016
1 parent a9be20b commit 0f3cf86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ RedirectableRequest.prototype.setSocketKeepAlive = function (enable, initialDela

// Sets the timeout option of the current native request
RedirectableRequest.prototype.setTimeout = function (timeout, callback) {
this._currentRequest.setSocketKeepAlive(timeout, callback);
this._currentRequest.setTimeout(timeout, callback);
};

// Writes buffered data to the current native request
Expand Down

0 comments on commit 0f3cf86

Please sign in to comment.