Skip to content

Commit

Permalink
br/TACO-137 added streamId to the response in hopes that this will fi…
Browse files Browse the repository at this point in the history
…x the ci build failure
  • Loading branch information
Brian Radebaugh committed Apr 18, 2018
1 parent 778858f commit d6f24c0
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,21 +85,22 @@ private class TestHandler extends SimpleChannelInboundHandler<Request> {
protected void channelRead0(ChannelHandlerContext ctx, Request msg) {

if (msg instanceof SegmentedRequestData && msg.endOfMessage()) {
sendResponse(ctx);
sendResponse(ctx, msg);
return;
} else if (msg instanceof FullRequest) {
sendResponse(ctx);
sendResponse(ctx, msg);
}

ctx.write(msg);
}

private void sendResponse(ChannelHandlerContext ctx) {
private void sendResponse(ChannelHandlerContext ctx, Request msg) {
val resp =
DefaultFullResponse.builder()
.headers(new DefaultHeaders())
.status(HttpResponseStatus.OK)
.body(Unpooled.EMPTY_BUFFER)
.streamId(msg.streamId())
.build();
ctx.writeAndFlush(resp);
}
Expand Down

0 comments on commit d6f24c0

Please sign in to comment.