| commit | 2de97d398d5a66307228b1269812da94e65e20a3 | [log] [tgz] |
|---|---|---|
| author | Andrew M. Kuchling <amk@amk.ca> | Mon Feb 03 19:11:18 2003 +0000 |
| committer | Andrew M. Kuchling <amk@amk.ca> | Mon Feb 03 19:11:18 2003 +0000 |
| tree | dc1d737a19ad6be45e7d640773166ba923a577fb | |
| parent | 868ecc22ab2207b1f9a36f803eaa58f5c3037657 [diff] |
[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.