diff --git a/codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectDecoder.java b/codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectDecoder.java index d91da42321..db4904407d 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectDecoder.java +++ b/codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectDecoder.java @@ -905,7 +905,7 @@ public abstract class HttpObjectDecoder extends ByteToMessageDecoder { } else if (validateOWS && !isOWS(c)) { // Only OWS is supported for whitespace throw new IllegalArgumentException("Invalid separator, only a single space or horizontal tab allowed," + - " but received a '" + c + "'"); + " but received a '" + c + "' (0x" + Integer.toHexString(c) + ")"); } } return sb.length();