Read chunked remote words (#817)

Fix chunked content could not be read as it will not get content length
I see there is an issue #780 and this fix it
This commit is contained in:
Jack 2020-09-06 16:34:40 +08:00 committed by GitHub
parent 1375ca6d39
commit 5a1b8c8da6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -469,7 +469,7 @@ public class Dictionary {
}
}
if (entity.getContentLength() > 0) {
if (entity.getContentLength() > 0 || entity.isChunked()) {
in = new BufferedReader(new InputStreamReader(entity.getContent(), charset));
String line;
while ((line = in.readLine()) != null) {