Skip to content

Commit b3c4ba5

Browse files
committed
Properly clear Utf8ByteBufCharsetDecoder's charBuffer, close AsyncHttpClient#1303
1 parent b903186 commit b3c4ba5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netty-utils/src/main/java/org/asynchttpclient/netty/util/Utf8ByteBufCharsetDecoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ private void ensureCapacity(int l) {
7474

7575
public void reset() {
7676
decoder.reset();
77-
charBuffer.position(0);
77+
charBuffer.clear();
7878
}
7979

8080
private static int charSize(byte firstByte) throws CharacterCodingException {

0 commit comments

Comments
 (0)