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:
Родитель
a086604f8f
Коммит
a5928712c9
|
@ -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 = [];
|
||||
|
|
Загрузка…
Ссылка в новой задаче