From b5d90388eaf3725757bc0c5dd7a0fa86ec0683ef Mon Sep 17 00:00:00 2001 From: Shixiong Zhu Date: Mon, 21 Dec 2015 20:28:39 -0800 Subject: [PATCH] Fix HttpHeaderValues.IDENTITY equals usage Motivation: HttpHeaderValues.IDENTITY is an AsciiString, but was compared using equals to a String. Modifications: Use contentEquals instead. Result: Correct comparison. --- .../java/io/netty/handler/codec/http/HttpContentDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codec-http/src/main/java/io/netty/handler/codec/http/HttpContentDecoder.java b/codec-http/src/main/java/io/netty/handler/codec/http/HttpContentDecoder.java index 3d60b6b530..3fbc1e12fc 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/http/HttpContentDecoder.java +++ b/codec-http/src/main/java/io/netty/handler/codec/http/HttpContentDecoder.java @@ -101,7 +101,7 @@ public abstract class HttpContentDecoder extends MessageToMessageDecoder