Encode the Stream ID for Stream frames

This commit is contained in:
Dirkjan Ochtman
2018-04-10 10:41:46 +02:00
parent bc428af22b
commit 8aec2d8f4e
+1
View File
@@ -60,6 +60,7 @@ impl Codec for StreamFrame {
0
};
buf.put_u8(0x10 | has_offset | has_len | is_fin);
VarLen::new(self.id).encode(buf);
if let Some(offset) = self.offset {
VarLen::new(offset).encode(buf);
}