未验证 提交 5a1b8c8d 编写于 作者: J Jack 提交者: GitHub

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
上级 1375ca6d
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册