-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
Closed
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.http2Issues or PRs related to the http2 subsystem.Issues or PRs related to the http2 subsystem.
Description
Is your feature request related to a problem? Please describe.
In http(s)1, user can limit server.maxHeadersCount
for server, to avoid malicious request (like hash collision attack), because normal headers wont be more than 20 in fact.
But in http(s)2, user has no chance to prevent parse that, even if user check request.rawHeaders.length/2>2000 && response.writeHead(400)
, the request.headers
already been parsed.
Describe the solution you'd like
Add server.maxHeadersCount
, just like http(s)1 did.
Describe alternatives you've considered
himself65, MaxNanasy and abdulrahman-khankan
Metadata
Metadata
Assignees
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.http2Issues or PRs related to the http2 subsystem.Issues or PRs related to the http2 subsystem.