Trying to fix the mess with content_length between versions

This commit is contained in:
Miroslav Stampar
2021-01-31 16:08:02 +01:00
parent 63e44f9ee9
commit 78b1c4f072
2 changed files with 2 additions and 2 deletions

View File

@@ -2477,7 +2477,7 @@ def _setTorSocksProxySettings():
def _setHttpChunked():
if conf.chunked and conf.data:
_http_client.HTTPConnection._set_content_length = lambda self, body: None
_http_client.HTTPConnection._set_content_length = lambda self, *args, **kwargs: None
def _checkWebSocket():
if conf.url and (conf.url.startswith("ws:/") or conf.url.startswith("wss:/")):