Skip to content

Commit

Permalink
Fixes #3766 - Introduce HTTP/2 API to batch frames.
Browse files Browse the repository at this point in the history
Fixed HttpTransportOverHTTP2.sendHeaders() - HEADERS
frame for trailers was missing the stream id.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
  • Loading branch information
sbordet committed Sep 1, 2020
1 parent 97a8a15 commit 7822cc5
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -148,7 +148,7 @@ else if (hasContent && contentLength != realContentLength)
else
{
dataFrame = new DataFrame(stream.getId(), content, false);
trailersFrame = new HeadersFrame(new MetaData(HttpVersion.HTTP_2, trailers), null, true);
trailersFrame = new HeadersFrame(stream.getId(), new MetaData(HttpVersion.HTTP_2, trailers), null, true);
}
}
else
Expand All @@ -168,7 +168,7 @@ else if (hasContent && contentLength != realContentLength)
else
{
headersFrame = new HeadersFrame(stream.getId(), info, null, false);
trailersFrame = new HeadersFrame(new MetaData(HttpVersion.HTTP_2, trailers), null, true);
trailersFrame = new HeadersFrame(stream.getId(), new MetaData(HttpVersion.HTTP_2, trailers), null, true);
}
}
else
Expand Down

0 comments on commit 7822cc5

Please sign in to comment.