[rhmessaging-commits] rhmessaging commits: r1907 - mgmt/cumin/python/wooly.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Mon Apr 14 12:16:58 EDT 2008


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:




More information about the rhmessaging-commits mailing list