Skip to content

Commit

Permalink
h2spec ETA: 113/147
Browse files Browse the repository at this point in the history
Signed-off-by: Eloi DEMOLIS <[email protected]>
  • Loading branch information
Wonshtrum committed May 23, 2024
1 parent 4997b6f commit 8976796
Show file tree
Hide file tree
Showing 6 changed files with 444 additions and 215 deletions.
2 changes: 1 addition & 1 deletion lib/src/protocol/mux/converter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ impl<'a, T: AsBuffer> BlockConverter<T> for H2BlockConverter<'a> {
..
}) => {
if end_header {
let payload = std::mem::replace(&mut self.out, Vec::new());
let payload = std::mem::take(&mut self.out);
let mut header = [0; 9];
let flags = if end_stream { 1 } else { 0 } | if end_header { 4 } else { 0 };
gen_frame_header(
Expand Down
Loading

0 comments on commit 8976796

Please sign in to comment.