diff --git a/HackRequests/HackRequests.py b/HackRequests/HackRequests.py index 8706098..e6ed793 100644 --- a/HackRequests/HackRequests.py +++ b/HackRequests/HackRequests.py @@ -218,6 +218,8 @@ def httpraw(self, raw: str, **kwargs): try: conn.putrequest(method, path, skip_host=True, skip_accept_encoding=True) for k, v in headers.items(): + if k == "Content-Length": + v = conn._get_content_length(body, method) conn.putheader(k, v) if body and "Content-Length" not in headers and "Transfer-Encoding" not in headers: length = conn._get_content_length(body, method)