netty5/codec-http/src
Norman Maurer cf8f6e3e2f [#5861] HttpUtil.getContentLength(HttpMessage, long) throws unexpected NumberFormatException
Motivation:

The Javadocs of HttpUtil.getContentLength(HttpMessage, long) and its int overload state that the provided default value is returned if the Content-Length value is not a number. NumberFormatException is thrown instead.

Modifications:

Correctly handle when the value is not a number.

Result:

API works as stated in javadocs.
2016-09-29 21:32:07 +02:00
..
main/java/io/netty/handler/codec [#5861] HttpUtil.getContentLength(HttpMessage, long) throws unexpected NumberFormatException 2016-09-29 21:32:07 +02:00
test [#5861] HttpUtil.getContentLength(HttpMessage, long) throws unexpected NumberFormatException 2016-09-29 21:32:07 +02:00