[New-bugs-announce] [issue31704] HTTP check lowercase response from proxy

Álvaro Muñoz report at bugs.python.org
Thu Oct 5 09:52:00 EDT 2017


New submission from Álvaro Muñoz <alvaro.munoz at gmail.com>:

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...

----------
components: Library (Lib)
messages: 303768
nosy: alvaromunoz
priority: normal
pull_requests: 3869
severity: normal
status: open
title: HTTP check lowercase response from proxy
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31704>
_______________________________________


More information about the New-bugs-announce mailing list