[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/testing/functional.py Cookie paths are always set with the lowercase "path"; this code never works otherwise

Martijn Pieters mj at zopatista.com
Tue Aug 1 12:05:26 EDT 2006


Log message for revision 69326:
  Cookie paths are always set with the lowercase "path"; this code never works otherwise

Changed:
  U   Zope3/trunk/src/zope/app/testing/functional.py

-=-
Modified: Zope3/trunk/src/zope/app/testing/functional.py
===================================================================
--- Zope3/trunk/src/zope/app/testing/functional.py	2006-08-01 13:30:37 UTC (rev 69325)
+++ Zope3/trunk/src/zope/app/testing/functional.py	2006-08-01 16:05:25 UTC (rev 69326)
@@ -278,8 +278,8 @@
         for k,v in response._cookies.items():
             k = k.encode('utf8')
             self.cookies[k] = v['value'].encode('utf8')
-            if self.cookies[k].has_key('Path'):
-                self.cookies[k]['Path'] = v['Path']
+            if self.cookies[k].has_key('path'):
+                self.cookies[k]['path'] = v['path']
 
 
 class BrowserTestCase(CookieHandler, FunctionalTestCase):



More information about the Zope3-Checkins mailing list