diff --git a/zipkin-collector/scribe/src/main/java/zipkin2/collector/scribe/ScribeInboundHandler.java b/zipkin-collector/scribe/src/main/java/zipkin2/collector/scribe/ScribeInboundHandler.java index ef11a63f955..44b0d83721e 100644 --- a/zipkin-collector/scribe/src/main/java/zipkin2/collector/scribe/ScribeInboundHandler.java +++ b/zipkin-collector/scribe/src/main/java/zipkin2/collector/scribe/ScribeInboundHandler.java @@ -161,7 +161,7 @@ void maybeReadPayload(ChannelHandlerContext ctx) { if (content instanceof ByteBufHolder) { ByteBuf buf = ((ByteBufHolder) content).content(); try { - returned.writeBytes(((ByteBufHolder) content).content()); + returned.writeBytes(buf); } finally { buf.release(); }