Skip to content

Commit 1d19605

Browse files
authored
Don't set the N bit for literals. (#41)
This is causing quic-go to reject the connection. It's a bug on their end, but there's no harm in unsetting the bit since it doesn't do anything.
1 parent 4ea56b3 commit 1d19605

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web-transport-proto/src/qpack.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ impl Headers {
207207
+-------------------------------+
208208
*/
209209

210-
encode_prefix(buf, 4, 0b0111, name);
210+
encode_prefix(buf, 4, 0b0101, name);
211211
encode_prefix(buf, 7, 0b0, value.len());
212212

213213
buf.put_slice(value.as_bytes());
@@ -227,7 +227,7 @@ impl Headers {
227227
+-------------------------------+
228228
*/
229229

230-
encode_prefix(buf, 3, 0b00110, name.len());
230+
encode_prefix(buf, 3, 0b00100, name.len());
231231
buf.put_slice(name.as_bytes());
232232

233233
encode_prefix(buf, 7, 0b0, value.len());

0 commit comments

Comments
 (0)