Commit 1cdf93e
http2: pass incoming set-cookie header as array
Incoming set-cookie headers should be passed to user as array like in
http module.
Besides improving compatibility between http and http2 it avoids the
need to check if the type is an array or not in user code.
Backport-PR-URL: #22850
PR-URL: #21360
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>1 parent 4228141 commit 1cdf93eCopy full SHA for 1cdf93e
File tree
Expand file treeCollapse file tree
3 files changed
+44
-10
lines changedOpen diff view settings
Filter options
- doc/api
- lib/internal/http2
- test/parallel
Expand file treeCollapse file tree
3 files changed
+44
-10
lines changedOpen diff view settings
Collapse file
+1-2Lines changed: 1 addition & 2 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2132 | 2132 | |
2133 | 2133 | |
2134 | 2134 | |
2135 | | - |
2136 | | - |
| 2135 | + |
2137 | 2136 | |
2138 | 2137 | |
2139 | 2138 | |
|
Collapse file
+2-5Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
504 | 504 | |
505 | 505 | |
506 | 506 | |
507 | | - |
| 507 | + |
508 | 508 | |
509 | 509 | |
510 | 510 | |
| ||
523 | 523 | |
524 | 524 | |
525 | 525 | |
526 | | - |
527 | | - |
528 | | - |
529 | | - |
| 526 | + |
530 | 527 | |
531 | 528 | |
532 | 529 | |
|
Collapse file
test/parallel/test-http2-util-headers-list.js
Copy file name to clipboardExpand all lines: test/parallel/test-http2-util-headers-list.js+41-3Lines changed: 41 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
4 | | - |
5 | | - |
| 4 | + |
| 5 | + |
6 | 6 | |
7 | 7 | |
8 | 8 | |
9 | 9 | |
10 | 10 | |
11 | | - |
| 11 | + |
12 | 12 | |
13 | 13 | |
14 | 14 | |
| ||
302 | 302 | |
303 | 303 | |
304 | 304 | |
| 305 | + |
| 306 | + |
| 307 | + |
| 308 | + |
| 309 | + |
| 310 | + |
| 311 | + |
| 312 | + |
| 313 | + |
| 314 | + |
| 315 | + |
| 316 | + |
| 317 | + |
| 318 | + |
| 319 | + |
| 320 | + |
| 321 | + |
| 322 | + |
| 323 | + |
| 324 | + |
| 325 | + |
| 326 | + |
| 327 | + |
| 328 | + |
| 329 | + |
| 330 | + |
| 331 | + |
| 332 | + |
| 333 | + |
| 334 | + |
| 335 | + |
| 336 | + |
| 337 | + |
| 338 | + |
| 339 | + |
| 340 | + |
| 341 | + |
| 342 | + |
0 commit comments