Skip to content

Commit 19c9827

Browse files
committed
Code optimized.
1 parent 6bfcc7c commit 19c9827

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/kotlin/server/Server.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ class Server(
8383

8484
keepReading = readResult == BUFFER_SIZE
8585
}
86-
val charBuffer = StandardCharsets.UTF_8.decode(clearInput.toByteArray().toByteString().asByteBuffer())
86+
val charBuffer = clearInput.toByteArray().decodeToString()
87+
// val charBuffer = StandardCharsets.UTF_8.decode(clearInput.toByteArray().toByteString().asByteBuffer())
8788
builder.append(charBuffer)
8889
clearInput.reset()
8990

0 commit comments

Comments
 (0)