The response from this server is 'HTTP/1.1 301\r\n'
Here is my fix for it:
Change in http.py line 126 from
version, status, reason = data.split(' ', 2)
to
try: version, status, reason = data.split(' ', 2) except: version, status = data.split(' ') reason = ''
This fixes the problem for me.
The response from this server is 'HTTP/1.1 301\r\n'
Here is my fix for it:
Change in http.py line 126
from
version, status, reason = data.split(' ', 2)
to
try:
version, status, reason = data.split(' ', 2)
except:
version, status = data.split(' ')
reason = ''
This fixes the problem for me.