Commit 1f5d225
committed
fix: invert priority-data check in HEADERS frame encoder
The condition guarding HEADERS priority encoding was backwards:
it checked is_falsy(StreamDep) (true when undefined) instead
of not is_falsy(StreamDep) (true when present). So priority
data was silently dropped from every HEADERS frame that carried
it, while the PRIORITY flag was never set.
Found by adding HEADERS property tests to prop_gen_http_parser_h2.1 parent b8c87df commit 1f5d225
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments