Skip to content

Commit

Permalink
Fix write after end.
Browse files Browse the repository at this point in the history
Closes #50.
  • Loading branch information
RubenVerborgh committed Jun 21, 2017
1 parent 8c11a9f commit c159f6d
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 @@ -193,7 +193,7 @@ RedirectableRequest.prototype.setTimeout = function (timeout, callback) {
};

// Writes buffered data to the current native request
RedirectableRequest.prototype._write = function (data, encoding, callback) {
RedirectableRequest.prototype.write = function (data, encoding, callback) {
this._currentRequest.write(data, encoding, callback);
this._bufferedWrites.push({data: data, encoding: encoding});
};
Expand Down

0 comments on commit c159f6d

Please sign in to comment.