Skip to content

Commit

Permalink
fix: fixed .buffer prototype in client issue (closes #1517)
Browse files Browse the repository at this point in the history
  • Loading branch information
niftylettuce committed Jan 7, 2020
1 parent 226af0b commit 639ce2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -687,8 +687,8 @@ Request.prototype.agent = function() {
return this;
};

Request.prototype.buffer = Request.prototype.ca;
Request.prototype.ca = Request.prototype.agent;
Request.prototype.buffer = Request.prototype.ca;

// This throws, because it can't send/receive data as expected
Request.prototype.write = () => {
Expand Down

0 comments on commit 639ce2c

Please sign in to comment.