WebStack

Changeset

769:87123838ebfd
2008-11-18 Paul Boddie raw files shortlog changelog graph Refrain from emitting the 200 status code since Apache will sometimes make decisions about responses employing Last-Modified headers which conflict with any previously reported status code. See this report: https://issues.apache.org/bugzilla/show_bug.cgi?id=38070
WebStack/CGI.py (file)
     1.1 --- a/WebStack/CGI.py	Mon Nov 17 19:52:59 2008 +0100
     1.2 +++ b/WebStack/CGI.py	Tue Nov 18 20:28:58 2008 +0100
     1.3 @@ -86,7 +86,8 @@
     1.4  
     1.5          # NOTE: Provide sensible messages.
     1.6  
     1.7 -        self.output.write("Status: %s %s\n" % (self.response_code, "WebStack status"))
     1.8 +        if self.response_code != 200:
     1.9 +            self.output.write("Status: %s %s\n" % (self.response_code, "WebStack status"))
    1.10          if self.content_type is not None:
    1.11              self.output.write("Content-type: %s\n" % str(self.content_type))
    1.12          for header, value in self.headers_out.items():