mirror of https://github.com/nodejs/node.git
http: remove ClientRequest.prototype.pause()
ClientRequest.prototype.pause() is not needed. ClientRequest is a writable stream and deferring to OutgoingMessage.prototype.pause() is broken, the method does not exist.pull/24503/head
parent
024451c65c
commit
f82ef0f7c3
|
@ -1431,12 +1431,6 @@ ClientRequest.prototype.setNoDelay = function() {
|
|||
ClientRequest.prototype.setSocketKeepAlive = function() {
|
||||
this._deferToConnect('setKeepAlive', arguments);
|
||||
};
|
||||
ClientRequest.prototype.pause = function() {
|
||||
var self = this;
|
||||
self._deferToConnect(null, null, function() {
|
||||
OutgoingMessage.prototype.pause.apply(self, []);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
exports.request = function(options, cb) {
|
||||
|
|
Loading…
Reference in New Issue