[Python-bugs-list] [Bug #123045] httplib uses a case-sensitive comparision on HTTP-Version
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 20 Nov 2000 22:41:01 -0800
Bug #123045, was updated on 2000-Nov-20 22:41
Here is a current snapshot of the bug.
Project: Python
Category: Modules
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Summary: httplib uses a case-sensitive comparision on HTTP-Version
Details: I am working with an HTTP server that uses a lower-cased "HTTP" in the status line. The server authors have refered me to RFC 2616 2.1, 3.1, 6.1, which imply that a conforming implementation can return a lower-cased "http" in the status line. (6.1 defines that a "Status-Line" begins with an "HTTP-Version". 3.1 defines "HTTP-Version" as begining with "HTTP". 2.1 explains that string literals in ABNF are case-insensitive, unless otherwise stated.)
httlib.HTTPResponse.begin determines that the status line is bad if the following code tests true:
if version[:5] != 'HTTP/'
using a case-sensitive comparison routine. Subsequent code also uses case insensitive comparison routine.
A similar bug was submitted as #119556, but the resolution did not take case differences into account.
For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=123045&group_id=5470