]> granicus.if.org Git - python/commit
[Bug #676292] BaseHTTPServer incorrectly parses protocol; fix by Andrew Dalke
authorAndrew M. Kuchling <amk@amk.ca>
Mon, 3 Feb 2003 19:11:18 +0000 (19:11 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Mon, 3 Feb 2003 19:11:18 +0000 (19:11 +0000)
commit2de97d398d5a66307228b1269812da94e65e20a3
treedc1d737a19ad6be45e7d640773166ba923a577fb
parent868ecc22ab2207b1f9a36f803eaa58f5c3037657
[Bug #676292] BaseHTTPServer incorrectly parses protocol; fix by Andrew Dalke
   * Treat major, minor numbers of HTTP version as separate integers
   * Fix errors if version string is "HTTP/1.2.3" or even simply "BLAH".
   * send_error() checks if 'self.command' is a
     HEAD.  However, if there's an error parsing the first line of the
     HTTP request the self.command wasn't set yet; force
     self.command to be initialized to None.
Lib/BaseHTTPServer.py