diff --git a/codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionDecoder.java b/codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionDecoder.java index 9a37045e35..0ef3e04ded 100644 --- a/codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionDecoder.java +++ b/codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionDecoder.java @@ -397,8 +397,8 @@ public class DefaultHttp2ConnectionDecoder implements Http2ConnectionDecoder { stream.setProperty(contentLengthKey, new ContentLength(cLength)); } } catch (IllegalArgumentException e) { - throw streamError(stream.id(), PROTOCOL_ERROR, - "Multiple content-length headers received", e); + throw streamError(stream.id(), PROTOCOL_ERROR, e, + "Multiple content-length headers received"); } } }