aboutsummaryrefslogtreecommitdiff
path: root/lib/_http_client.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/_http_client.js')
-rw-r--r--lib/_http_client.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/_http_client.js b/lib/_http_client.js
index 5b47f9c72a..fd69bb28aa 100644
--- a/lib/_http_client.js
+++ b/lib/_http_client.js
@@ -279,9 +279,7 @@ function ClientRequest(input, options, cb) {
this._deferToConnect(null, null, () => this._flush());
}
-
-util.inherits(ClientRequest, OutgoingMessage);
-
+Object.setPrototypeOf(ClientRequest.prototype, OutgoingMessage.prototype);
ClientRequest.prototype._finish = function _finish() {
DTRACE_HTTP_CLIENT_REQUEST(this, this.connection);