2006-11-12 | paulb | raw files shortlog changelog graph | [project @ 2006-11-12 22:41:45 by paulb] Really fixed cookie output issues. | |
WebStack/CGI.py (file) |
1.1 --- a/WebStack/CGI.py Sun Nov 12 02:54:08 2006 +0000 1.2 +++ b/WebStack/CGI.py Sun Nov 12 22:41:45 2006 +0000 1.3 @@ -92,7 +92,9 @@ 1.4 self.output.write("%s: %s\n" % 1.5 (self.format_header_value(header), self.format_header_value(value)) 1.6 ) 1.7 - self.output.write(str(self.cookies_out) + "\n") 1.8 + cookie_str = str(self.cookies_out) 1.9 + if cookie_str: 1.10 + self.output.write(cookie_str + "\n") 1.11 self.output.write("\n") 1.12 1.13 self.content.seek(0)