Commit df31f71
http2: header field valid checks
checks validity for request, writeHead, and setHeader methods
PR-URL: #33193
Refs: #29829
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>1 parent 2c0a4fa commit df31f71Copy full SHA for df31f71
File tree
Expand file treeCollapse file tree
4 files changed
+84
-2
lines changedOpen diff view settings
Filter options
- lib/internal/http2
- test/parallel
Expand file treeCollapse file tree
4 files changed
+84
-2
lines changedOpen diff view settings
Collapse file
lib/internal/http2/compat.js
Copy file name to clipboardExpand all lines: lib/internal/http2/compat.js+12-1Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
46 | 46 | |
47 | 47 | |
48 | 48 | |
49 | | - |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
50 | 56 | |
51 | 57 | |
52 | 58 | |
| ||
590 | 596 | |
591 | 597 | |
592 | 598 | |
| 599 | + |
| 600 | + |
| 601 | + |
| 602 | + |
| 603 | + |
593 | 604 | |
594 | 605 | |
595 | 606 | |
|
Collapse file
+16-1Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
9 | 9 | |
10 | 10 | |
11 | 11 | |
| 12 | + |
12 | 13 | |
13 | 14 | |
14 | 15 | |
| ||
35 | 36 | |
36 | 37 | |
37 | 38 | |
38 | | - |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
39 | 43 | |
40 | 44 | |
41 | 45 | |
| ||
88 | 92 | |
89 | 93 | |
90 | 94 | |
| 95 | + |
91 | 96 | |
92 | 97 | |
93 | 98 | |
| ||
108 | 113 | |
109 | 114 | |
110 | 115 | |
| 116 | + |
111 | 117 | |
112 | 118 | |
113 | 119 | |
| ||
1602 | 1608 | |
1603 | 1609 | |
1604 | 1610 | |
| 1611 | + |
| 1612 | + |
| 1613 | + |
| 1614 | + |
| 1615 | + |
| 1616 | + |
| 1617 | + |
| 1618 | + |
| 1619 | + |
1605 | 1620 | |
1606 | 1621 | |
1607 | 1622 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
595 | 595 | |
596 | 596 | |
597 | 597 | |
| 598 | + |
598 | 599 | |
599 | 600 | |
600 | 601 | |
|
Collapse file
test/parallel/test-http2-invalidheaderfields-client.js
Copy file name to clipboard+55Lines changed: 55 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
0 commit comments