Skip to content

Commit 6ad0148

Browse files
committed
handle new netty errors
1 parent e374f93 commit 6ad0148

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/jooby-netty/src/main/java/io/jooby/internal/netty/NettyHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
173173
private void offer(NettyContext context, HttpContent chunk) {
174174
try {
175175
context.decoder.offer(chunk);
176-
} catch (HttpPostRequestDecoder.ErrorDataDecoderException x) {
176+
} catch (HttpPostRequestDecoder.ErrorDataDecoderException | HttpPostRequestDecoder.TooLongFormFieldException | HttpPostRequestDecoder.TooManyFormFieldsException x) {
177177
resetDecoderState(context, true);
178178
context.sendError(x, StatusCode.BAD_REQUEST);
179179
}

0 commit comments

Comments
 (0)