http2: correct behaviour for enablePush unpack · nodejs/node@2e421ff · GitHub
Skip to content

Commit 2e421ff

Browse files
apapirovskijasnell
authored andcommitted
http2: correct behaviour for enablePush unpack
The only valid values for enablePush are 0 and 1. If validation is requested, we should verify that it wasn't set to another value rather than casting to Boolean regardless of value. PR-URL: #15167 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 4d68064 commit 2e421ff

2 files changed

Lines changed: 29 additions & 8 deletions

File tree

lib/internal/http2/core.js

Lines changed: 8 additions & 8 deletions

test/parallel/test-http2-getpackedsettings.js

Lines changed: 21 additions & 0 deletions

0 commit comments

Comments
 (0)