-
Bug
-
Resolution: Done
-
Major
-
3.1.0.CR2
-
None
-
None
Resteasy Netty4 crashes when client sends a "Expect: 100-continue" header. Here's the error:
java.lang.UnsupportedOperationException: unsupported message type: DefaultFullHttpResponse (expected: ByteBuf, FileRegion)
I've looked for a fix and think I've got it. The API doc for HttpObjectAggregator (used in NettyJaxrsServer) states that :
Be aware that you need to have the HttpResponseEncoder or HttpRequestEncoder before the HttpObjectAggregator in the ChannelPipeline.
I've tried and moved the HttpObjectAggregator as said above, and it worked fine. Once the issue is created, I'll create a PR with the fix.