Skip to content

Commit 8fb68d8

Browse files
committed
better trailer check
1 parent 61dc463 commit 8fb68d8

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
@@ -1203,7 +1203,7 @@ void Http2Transport::handleFrameForStream(const internal::H2Frame &frame,
12031203
}
12041204
bool endStream = (flags & (uint8_t)H2HeadersFlags::EndStream);
12051205
bool endHeaders = (flags & (uint8_t)H2HeadersFlags::EndHeaders);
1206-
if (endStream && !endHeaders)
1206+
if ((endStream && !endHeaders) || stream.body.size() != 0)
12071207
{
12081208
connectionErrored(streamId,
12091209
StreamCloseErrorCode::ProtocolError,

0 commit comments

Comments
 (0)