Another patch for #4576

This commit is contained in:
Miroslav Stampar
2021-02-10 14:09:13 +01:00
parent 1bef2f8fda
commit 747951b80b
2 changed files with 4 additions and 2 deletions

View File

@@ -2484,7 +2484,9 @@ def _setHttpChunked():
if header != HTTP_HEADER.CONTENT_LENGTH:
self._putheader(header, *values)
_http_client.HTTPConnection._putheader = _http_client.HTTPConnection.putheader
if not hasattr(_http_client.HTTPConnection, "_putheader"):
_http_client.HTTPConnection._putheader = _http_client.HTTPConnection.putheader
_http_client.HTTPConnection.putheader = putheader
def _checkWebSocket():