From fb52cb35c4d89e0f49e2498384c8b9f127de9b12 Mon Sep 17 00:00:00 2001 From: boy-hack <34109680@qq.com> Date: Tue, 19 Mar 2019 13:16:44 +0800 Subject: [PATCH] Solve the error caused by the mix of get mode and chunk --- lib/core/option.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/core/option.py b/lib/core/option.py index 158f5ee2c..2b241a966 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -2606,12 +2606,14 @@ def initOptions(inputOptions=AttribDict(), overrideOptions=False): _mergeOptions(inputOptions, overrideOptions) def _setHttpChunked(): + conf.chunk = conf.chunk and conf.data if conf.chunk: def hook(self, a, b): pass httplib.HTTPConnection._set_content_length = hook + def init(): """ Set attributes into both configuration and knowledge base singletons