From a91e72403c08be6fb3524ace01cba1ef5087ecac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Br=C3=A9gier?= Date: Wed, 2 May 2012 11:40:28 +0300 Subject: [PATCH] Very small fix (readUnsigned while in optimized version it was signed but should be unsigned) --- .../io/netty/handler/codec/http/HttpPostRequestDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codec-http/src/main/java/io/netty/handler/codec/http/HttpPostRequestDecoder.java b/codec-http/src/main/java/io/netty/handler/codec/http/HttpPostRequestDecoder.java index 1347c1be89..88d96ad42e 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/http/HttpPostRequestDecoder.java +++ b/codec-http/src/main/java/io/netty/handler/codec/http/HttpPostRequestDecoder.java @@ -851,7 +851,7 @@ public class HttpPostRequestDecoder { } while (sao.pos < sao.limit) { - char c = (char) sao.bytes[sao.pos ++]; + char c = (char) ()sao.bytes[sao.pos ++] & 0xFF); if (!Character.isISOControl(c) && !Character.isWhitespace(c)) { sao.setReadPosition(1); return;