Fix a compilation error

This commit is contained in:
Trustin Lee 2014-07-23 14:56:20 -07:00
parent 00295b23c8
commit 2c1d8584db

View File

@ -110,7 +110,7 @@ public class Http2ClientConnectionHandler extends AbstractHttp2ConnectionHandler
int streamId = nextStreamId(); int streamId = nextStreamId();
writeHeaders(ctx, promise, streamId, headers.build(), 0, !hasData, false); writeHeaders(ctx, promise, streamId, headers.build(), 0, !hasData, false);
if (hasData) { if (hasData) {
writeData(ctx, ctx.newPromise(), streamId, httpMsg.content(), 0, true, true, false); writeData(ctx, ctx.newPromise(), streamId, httpMsg.content(), 0, true, true);
} }
} else { } else {
ctx.write(msg, promise); ctx.write(msg, promise);