diff options
author | Zhen Chen <czhen@google.com> | 2016-11-21 17:15:15 -0800 |
---|---|---|
committer | Zhen Chen <czhen@google.com> | 2016-11-22 12:24:32 -0800 |
commit | ca2183a403b986d5ed2a2562b614a3dd4f36ffad (patch) | |
tree | f4741b989ada18d2ef0ad3ed3e66ade7bfe53187 /README.md | |
parent | 81f9c18433f9d53a64498b07c90c4fc73654d942 (diff) | |
download | jgit-ca2183a403b986d5ed2a2562b614a3dd4f36ffad.tar.gz jgit-ca2183a403b986d5ed2a2562b614a3dd4f36ffad.zip |
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>
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions