From 3da955fd212ce02c3ab3bc166b5bfac3c91b4019 Mon Sep 17 00:00:00 2001 From: Amir Mohsen Date: Sat, 10 Oct 2020 10:22:58 +0330 Subject: [PATCH] Fix bug in HTTP basic authentication --- socks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/socks.py b/socks.py index 83b1435..df124eb 100644 --- a/socks.py +++ b/socks.py @@ -677,7 +677,7 @@ def _negotiate_HTTP(self, dest_addr, dest_port): ] if username and password: - http_headers.append(b"Proxy-Authorization: basic " + http_headers.append(b"Proxy-Authorization: Basic " + b64encode(username + b":" + password)) http_headers.append(b"\r\n")