diff --git a/Lib/http/client.py b/Lib/http/client.py index 91074129225..230bccec988 100644 --- a/Lib/http/client.py +++ b/Lib/http/client.py @@ -1060,7 +1060,7 @@ class HTTPConnection: if encode_chunked and self._http_vsn == 11: # chunked encoding - chunk = f'{len(chunk):X}\r\n'.encode('ascii') + chunk \ + chunk = f'{len(chunk):X}''\r\n'.encode('ascii') + chunk \ + b'\r\n' self.send(chunk)