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:
parent
1375ca6d39
commit
5a1b8c8da6
@ -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));
|
in = new BufferedReader(new InputStreamReader(entity.getContent(), charset));
|
||||||
String line;
|
String line;
|
||||||
while ((line = in.readLine()) != null) {
|
while ((line = in.readLine()) != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user