Skip to content

Commit f380eb6

Browse files
committed
netty: remove duplicate buffer from send method
1 parent 2c3f248 commit f380eb6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/jooby-netty/src/main/java/io/jooby/internal/netty/NettyContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ public final Context send(ByteBuffer data) {
597597

598598
@NonNull @Override
599599
public Context send(@NonNull DataBuffer data) {
600-
return send(((NettyDataBuffer) data).getNativeBuffer().duplicate());
600+
return send(((NettyDataBuffer) data).getNativeBuffer());
601601
}
602602

603603
private Context send(@NonNull ByteBuf data) {

0 commit comments

Comments
 (0)