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

http: fix >90% performance regression for GET requests using response.end #9026

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions lib/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -946,10 +946,6 @@ OutgoingMessage.prototype.end = function(data, encoding) {
if (encoding === 'hex' || encoding === 'base64')
hot = false;

// Transfer-encoding: chunked responses to HEAD requests
if (this._hasBody && this.chunkedEncoding)
hot = false;

if (hot) {
// Hot path. They're doing
// res.writeHead();
Expand Down