http: name anonymous function in _http_common.js
Refs: https://github.com/nodejs/node/issues/8913 PR-URL: https://github.com/nodejs/node/pull/21755 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
cfe0c024fc
commit
72624fdd53
@ -148,7 +148,7 @@ function parserOnMessageComplete() {
|
||||
}
|
||||
|
||||
|
||||
const parsers = new FreeList('parsers', 1000, function() {
|
||||
const parsers = new FreeList('parsers', 1000, function parsersCb() {
|
||||
const parser = new HTTPParser(HTTPParser.REQUEST);
|
||||
|
||||
parser._headers = [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user