Zhen Chen
ca2183a403
Fix content length in HttpClientConnection
Per the interface specification, the getContentLength method should return -1 if content length is unknown or greater than Integer.MAX_VALUE. For chunked transfer encoding, the content length is not included in the header, hence will cause a NullPointerException when trying to parse the content length header. Change-Id: Iaa36b5c146a8d654e364635fa0bd2d14129baf17 Signed-off-by: Zhen Chen <czhen@google.com> |
il y a 7 ans | |
---|---|---|
.. | ||
internal | Move Apache httpclient based HTTP support to a separate bundle | il y a 10 ans |
HttpClientConnection.java | Fix content length in HttpClientConnection | il y a 7 ans |
HttpClientConnectionFactory.java | Move Apache httpclient based HTTP support to a separate bundle | il y a 10 ans |
TemporaryBufferEntity.java | Use valueOf rather than constructor for Integer and Boolean | il y a 7 ans |