Commit 2595fbc
http2: improve compatibility with http/1
When using the compatibility API the connection header is from now on
ignored instead of throwing an `ERR_HTTP2_INVALID_CONNECTION_HEADERS`
error.
This logs a warning in such case to notify the user about the ignored
header.
PR-URL: #23908
Fixes: #23748
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>1 parent fc9ba36 commit 2595fbcCopy full SHA for 2595fbc
File tree
Expand file treeCollapse file tree
2 files changed
+32
-0
lines changedOpen diff view settings
Filter options
- lib/internal/http2
- test/parallel
Expand file treeCollapse file tree
2 files changed
+32
-0
lines changedOpen diff view settings
Collapse file
lib/internal/http2/compat.js
Copy file name to clipboardExpand all lines: lib/internal/http2/compat.js+25Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
45 | 45 | |
46 | 46 | |
47 | 47 | |
| 48 | + |
48 | 49 | |
49 | 50 | |
50 | 51 | |
| ||
58 | 59 | |
59 | 60 | |
60 | 61 | |
| 62 | + |
| 63 | + |
61 | 64 | |
62 | 65 | |
63 | 66 | |
| ||
88 | 91 | |
89 | 92 | |
90 | 93 | |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + |
| 108 | + |
| 109 | + |
| 110 | + |
91 | 111 | |
92 | 112 | |
93 | 113 | |
| ||
539 | 559 | |
540 | 560 | |
541 | 561 | |
| 562 | + |
| 563 | + |
| 564 | + |
| 565 | + |
| 566 | + |
542 | 567 | |
543 | 568 | |
544 | 569 | |
|
Collapse file
test/parallel/test-http2-server-set-header.js
Copy file name to clipboardExpand all lines: test/parallel/test-http2-server-set-header.js+7Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
11 | 11 | |
12 | 12 | |
13 | 13 | |
| 14 | + |
14 | 15 | |
15 | 16 | |
16 | 17 | |
| ||
34 | 35 | |
35 | 36 | |
36 | 37 | |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
37 | 44 | |
0 commit comments