Use get_next_available_stream_id

This commit is contained in:
agatha 2023-10-11 19:22:45 -04:00
parent 9fde8d6fbe
commit 1a42bd06fe

View File

@ -44,7 +44,7 @@ def make_http2_request():
(':scheme', 'https'), (':scheme', 'https'),
] ]
c.send_headers( c.send_headers(
stream_id=1, stream_id=c.get_next_available_stream_id(),
headers=headers, headers=headers,
end_stream=True end_stream=True
) )