From f3e106c1bf40f67a6b99bdc8572d8247fb3a8c8e Mon Sep 17 00:00:00 2001 From: "Sterling G. Baird" Date: Fri, 24 May 2024 12:07:28 -0400 Subject: [PATCH] HTTP/1.0 to HTTP/1.1 --- python-ecosys/requests/requests/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-ecosys/requests/requests/__init__.py b/python-ecosys/requests/requests/__init__.py index 740102916..c50fcce0e 100644 --- a/python-ecosys/requests/requests/__init__.py +++ b/python-ecosys/requests/requests/__init__.py @@ -93,7 +93,7 @@ def request( context = tls.SSLContext(tls.PROTOCOL_TLS_CLIENT) context.verify_mode = tls.CERT_NONE s = context.wrap_socket(s, server_hostname=host) - s.write(b"%s /%s HTTP/1.0\r\n" % (method, path)) + s.write(b"%s /%s HTTP/1.1\r\n" % (method, path)) if "Host" not in headers: s.write(b"Host: %s\r\n" % host) # Iterate over keys to avoid tuple alloc