classification
Title: HTTP check lowercase response from proxy
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.8, Python 3.7, Python 3.6, Python 3.5, Python 3.4, Python 2.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: alvaromunoz
Priority: normal Keywords:

Created on 2017-10-05 13:52 by alvaromunoz, last changed 2017-10-05 13:52 by alvaromunoz.

Pull Requests
URL Status Linked Edit
PR 3870 alvaromunoz, 2017-10-05 13:51
Messages (1)
msg303768 - (view) Author: Álvaro Muñoz (alvaromunoz) * Date: 2017-10-05 13:51
Recently faced an issue with a proxy responding in lowercase http, which caused this:

ProtocolError('Connection aborted.', BadStatusLine('http/1.1 200 connection established\r\n',))

Changing the string to uppercase before checking if it starts with HTTP fixes this issue and allows to use this proxy.

I know that the proxy is at fault here, but seeing as other applications (web browsers, office suite, text editors, etc.) still work behind this proxy, I think it might be a reasonable fix to have...
History
Date User Action Args
2017-10-05 13:52:00alvaromunozcreate