Skip to content

Commit

Permalink
Fix WT stream header
Browse files Browse the repository at this point in the history
  • Loading branch information
huitema committed Sep 21, 2023
1 parent 35f0487 commit a3486b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion picohttp/webtransport.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ h3zero_stream_ctx_t* picowt_create_local_stream(picoquic_cnx_t* cnx, int is_bidi
int ret;

uint8_t* bytes = stream_header;
bytes = picoquic_frames_varint_encode(bytes, stream_header + 16, h3zero_frame_webtransport_stream);
bytes = picoquic_frames_varint_encode(bytes, stream_header + 16,
(is_bidir)?h3zero_frame_webtransport_stream:h3zero_stream_type_webtransport);
bytes = picoquic_frames_varint_encode(bytes, stream_header + 16, control_stream_id);
if ((ret = picoquic_add_to_stream_with_ctx(cnx, stream_ctx->stream_id, stream_header, bytes - stream_header, 0, stream_ctx)) != 0) {
/* something went wrong */
Expand Down

0 comments on commit a3486b9

Please sign in to comment.