Commit de1483d
authored
fix(http1): use append for repeat trailer values in encoder (#4118)
The chunked trailer encoder built allowed_trailers with HeaderMap::insert,
which overwrites prior values for the same name. When a user sets the same
trailer field multiple times, only the last value was written to the wire.
This mirrors the decode-side fix (#4107): use append so duplicate trailer
values are preserved on encode, matching how regular headers are emitted.1 parent 08c3416 commit de1483d
1 file changed
Lines changed: 27 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| |||
567 | 567 | | |
568 | 568 | | |
569 | 569 | | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
570 | 596 | | |
571 | 597 | | |
572 | 598 | | |
| |||
0 commit comments