• Andrew M. Kuchling's avatar
    [Bug #676292] BaseHTTPServer incorrectly parses protocol; fix by Andrew Dalke · 2de97d39
    Andrew M. Kuchling yazdı
       * 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.
    2de97d39
BaseHTTPServer.py 20.9 KB