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.
This commit is contained in:
parent
024451c65c
commit
f82ef0f7c3
@ -1431,12 +1431,6 @@ ClientRequest.prototype.setNoDelay = function() {
|
|||||||
ClientRequest.prototype.setSocketKeepAlive = function() {
|
ClientRequest.prototype.setSocketKeepAlive = function() {
|
||||||
this._deferToConnect('setKeepAlive', arguments);
|
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) {
|
exports.request = function(options, cb) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user