-
- Downloads
Return null in HttpPostRequestEncoder (#9352)
Motivation: If the encoded value of a form element happens to exactly hit the chunk limit (8096 bytes), the post request encoder will throw a NullPointerException. Modifications: Catch the null case and return. Result: No NPE.
Showing
- codec-http/src/main/java/io/netty/handler/codec/http/multipart/HttpPostRequestEncoder.java 5 additions, 1 deletion.../handler/codec/http/multipart/HttpPostRequestEncoder.java
- codec-http/src/test/java/io/netty/handler/codec/http/multipart/HttpPostRequestEncoderTest.java 25 additions, 0 deletions...dler/codec/http/multipart/HttpPostRequestEncoderTest.java
Loading
Please register or sign in to comment