From 1c84914c5a3bfc71969ca1930818d43192ae3ae8 Mon Sep 17 00:00:00 2001 From: Anatoli Papirovski Date: Wed, 18 Apr 2018 09:28:16 +0200 Subject: [PATCH] http: remove duplicate comment A comment explaining kOnHeaders function of the parser was duplicated in two places but the second instance was more confusing than helpful. PR-URL: https://github.com/nodejs/node/pull/20126 Reviewed-By: Luigi Pinca Reviewed-By: Daniel Bevenius Reviewed-By: Matteo Collina --- lib/_http_common.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/_http_common.js b/lib/_http_common.js index f34396ba8a8..c8998f4d85a 100644 --- a/lib/_http_common.js +++ b/lib/_http_common.js @@ -159,11 +159,6 @@ const parsers = new FreeList('parsers', 1000, function() { parser.incoming = null; parser.outgoing = null; - // Only called in the slow case where slow means - // that the request headers were either fragmented - // across multiple TCP packets or too large to be - // processed in a single run. This method is also - // called to process trailing HTTP headers. parser[kOnHeaders] = parserOnHeaders; parser[kOnHeadersComplete] = parserOnHeadersComplete; parser[kOnBody] = parserOnBody;