# HG changeset patch # User paulb # Date 1163371305 0 # Node ID 4182f4f498ced21aec3e337c5c49d3ef7a83a877 # Parent 9726803b96c1c419554102bb868bad62d2f3dc41 [project @ 2006-11-12 22:41:45 by paulb] Really fixed cookie output issues. diff -r 9726803b96c1 -r 4182f4f498ce WebStack/CGI.py --- a/WebStack/CGI.py Sun Nov 12 02:54:08 2006 +0000 +++ b/WebStack/CGI.py Sun Nov 12 22:41:45 2006 +0000 @@ -92,7 +92,9 @@ self.output.write("%s: %s\n" % (self.format_header_value(header), self.format_header_value(value)) ) - self.output.write(str(self.cookies_out) + "\n") + cookie_str = str(self.cookies_out) + if cookie_str: + self.output.write(cookie_str + "\n") self.output.write("\n") self.content.seek(0)