diff --git a/lib/_http_client.js b/lib/_http_client.js index d91b43516fa4ee..5b47f9c72a71b7 100644 --- a/lib/_http_client.js +++ b/lib/_http_client.js @@ -306,7 +306,7 @@ ClientRequest.prototype.abort = function abort() { if (this.res) { this.res._dump(); } else { - this.once('response', function(res) { + this.once('response', (res) => { res._dump(); }); }