Author: justi9
Date: 2008-04-14 12:16:58 -0400 (Mon, 14 Apr 2008)
New Revision: 1907
Modified:
mgmt/cumin/python/wooly/server.py
Log:
Set the content length on 30x responses
Modified: mgmt/cumin/python/wooly/server.py
===================================================================
--- mgmt/cumin/python/wooly/server.py 2008-04-14 15:47:46 UTC (rev 1906)
+++ mgmt/cumin/python/wooly/server.py 2008-04-14 16:16:58 UTC (rev 1907)
@@ -68,7 +68,8 @@
redirect = page.get_redirect_url(session)
if redirect:
- respond("303 See Other", (("Location", redirect),))
+ respond("303 See Other", (("Location", redirect),
+ ("Content-Length", "0")))
return ()
ims = env.get("HTTP_IF_MODIFIED_SINCE")
@@ -78,7 +79,7 @@
since = datetime(*strptime(str(ims), self.http_date)[0:6])
if modified <= since:
- respond("304 Not Modified", ())
+ respond("304 Not Modified", (("Content-Length",
"0"),))
return ()
try: