[rhmessaging-commits] rhmessaging commits: r3204 - mgmt/trunk/wooly/python/wooly.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Mon Mar 23 17:57:07 EDT 2009


Author: justi9
Date: 2009-03-23 17:57:07 -0400 (Mon, 23 Mar 2009)
New Revision: 3204

Modified:
   mgmt/trunk/wooly/python/wooly/server.py
Log:
Set missing message

Modified: mgmt/trunk/wooly/python/wooly/server.py
===================================================================
--- mgmt/trunk/wooly/python/wooly/server.py	2009-03-23 21:51:14 UTC (rev 3203)
+++ mgmt/trunk/wooly/python/wooly/server.py	2009-03-23 21:57:07 UTC (rev 3204)
@@ -133,6 +133,11 @@
                 session.headers_by_name[name] = value
 
     def send_not_found(self, response, headers):
+        message = "404 Not Found"
+
+        headers.append(("Content-Length", str(len(message))))
+        headers.append(("Content-Type", "text/plain"))
+
         response(message, headers)
         return (message,)
 




More information about the rhmessaging-commits mailing list