Properly include is_fin bit in stream frame type

This commit is contained in:
Dirkjan Ochtman
2018-04-09 21:24:46 +02:00
parent 2955090061
commit bcfe0a3d92
+1 -1
View File
@@ -282,7 +282,7 @@ impl Codec for StreamFrame {
} else {
0
};
buf.put_u8(0x10 | has_offset | has_len);
buf.put_u8(0x10 | has_offset | has_len | is_fin);
if let Some(offset) = self.offset {
VarLen::new(offset).encode(buf);
}