Skip to content

Commit ea60148

Browse files
apapirovskijasnell
authored andcommitted
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: #20126 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent 6886dd1 commit ea60148

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/_http_common.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,6 @@ const parsers = new FreeList('parsers', 1000, function() {
159159
parser.incoming = null;
160160
parser.outgoing = null;
161161

162-
// Only called in the slow case where slow means
163-
// that the request headers were either fragmented
164-
// across multiple TCP packets or too large to be
165-
// processed in a single run. This method is also
166-
// called to process trailing HTTP headers.
167162
parser[kOnHeaders] = parserOnHeaders;
168163
parser[kOnHeadersComplete] = parserOnHeadersComplete;
169164
parser[kOnBody] = parserOnBody;

0 commit comments

Comments
 (0)