Skip to content

Commit e7eff32

Browse files
authored
fix failing on debug mode (#2079)
1 parent 88bf6f7 commit e7eff32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/Http2Transport.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ void Http2Transport::sendRequestInLoop(const HttpRequestPtr &req,
679679
// -2 because we are using the next stream id for the next request
680680
// TODO: Clean interface to get the current highest stream id. Might need
681681
// to keep tracking separately
682-
const auto streamId = *sid - 2;
682+
const auto streamId = *sid;
683683
assert(streamId % 2 == 1);
684684
LOG_TRACE << "Sending HTTP/2 request: streamId=" << streamId;
685685
if (streams.find(streamId) != streams.end())

0 commit comments

Comments
 (0)