mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-20 18:23:41 +00:00
Properly include is_fin bit in stream frame type
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user