Skip to content

Commit 3da955f

Browse files
author
Amir Mohsen
committed
Fix bug in HTTP basic authentication
1 parent c2fa43c commit 3da955f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

socks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ def _negotiate_HTTP(self, dest_addr, dest_port):
677677
]
678678

679679
if username and password:
680-
http_headers.append(b"Proxy-Authorization: basic "
680+
http_headers.append(b"Proxy-Authorization: Basic "
681681
+ b64encode(username + b":" + password))
682682

683683
http_headers.append(b"\r\n")

0 commit comments

Comments
 (0)