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

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


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

Modified:
   mgmt/trunk/wooly/python/wooly/pages.py
Log:
Header values are scalar now

Modified: mgmt/trunk/wooly/python/wooly/pages.py
===================================================================
--- mgmt/trunk/wooly/python/wooly/pages.py	2009-03-23 21:57:07 UTC (rev 3204)
+++ mgmt/trunk/wooly/python/wooly/pages.py	2009-03-23 21:57:31 UTC (rev 3205)
@@ -92,9 +92,9 @@
         self.app.add_page(self.javascript_page)
 
     def get_content_type(self, session):
-        values = session.headers_by_name.get("user_agent")
+        value = session.headers_by_name.get("user_agent")
 
-        if values and values[0].find("MSIE 6") != -1:
+        if value and value.find("MSIE 6") != -1:
             content_type = self.html_content_type
         else:
             content_type = self.xhtml_content_type




More information about the rhmessaging-commits mailing list