Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit f82ef0f

Browse files
xenyoubnoordhuis
authored andcommitted
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.
1 parent 024451c commit f82ef0f

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

lib/http.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1431,12 +1431,6 @@ ClientRequest.prototype.setNoDelay = function() {
14311431
ClientRequest.prototype.setSocketKeepAlive = function() {
14321432
this._deferToConnect('setKeepAlive', arguments);
14331433
};
1434-
ClientRequest.prototype.pause = function() {
1435-
var self = this;
1436-
self._deferToConnect(null, null, function() {
1437-
OutgoingMessage.prototype.pause.apply(self, []);
1438-
});
1439-
};
14401434

14411435

14421436
exports.request = function(options, cb) {

0 commit comments

Comments
 (0)