Solve the error caused by the mix of get mode and chunk

This commit is contained in:
boy-hack 2019-03-19 13:16:44 +08:00
parent f5bf8bffec
commit fb52cb35c4

View File

@ -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