Change to new request format.

This commit is contained in:
Solderpunk 2019-08-11 22:27:40 +03:00
parent 852d5e7d03
commit cd6ae89f1b
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ while True:
context.check_hostname = False
context.verify_mode = ssl.CERT_NONE
s = context.wrap_socket(s, server_hostname = parsed_url.netloc)
s.sendall((parsed_url.path + '\r\n').encode("UTF-8"))
s.sendall((url + '\r\n').encode("UTF-8"))
# Get header and check for redirects
fp = s.makefile("rb")
header = fp.readline()