[Zope-CVS] CVS: Products/CookieCrumbler - CHANGES.txt:1.6 CookieCrumbler.py:1.11
Florent Guillaume
fg@nuxeo.com
Thu, 25 Jul 2002 09:57:55 -0400
Update of /cvs-repository/Products/CookieCrumbler
In directory cvs.zope.org:/tmp/cvs-serv21656
Modified Files:
CHANGES.txt CookieCrumbler.py
Log Message:
Fixed CookieCrumbler to emit "Basic" and not "basic" auth as per HTTP spec.
=== Products/CookieCrumbler/CHANGES.txt 1.5 => 1.6 ===
+Version 0.5-CVS
+
+- Fixed CookieCrumbler to emit "Basic" and not "basic" auth as per HTTP
+ spec (CMF Collector #14). This fixes some WebDAV locking problems with
+ (rightfully) picky clients, like ExternalEditor.
Version 0.4
=== Products/CookieCrumbler/CookieCrumbler.py 1.10 => 1.11 ===
name = req[self.name_cookie]
pw = req[self.pw_cookie]
ac = encodestring('%s:%s' % (name, pw))
- req._auth = 'basic %s' % ac
+ req._auth = 'Basic %s' % ac
req._cookie_auth = 1
resp._auth = 1
if req.get(self.persist_cookie, 0):
@@ -167,7 +167,7 @@
# Not a valid auth header.
pass
else:
- req._auth = 'basic %s' % ac
+ req._auth = 'Basic %s' % ac
req._cookie_auth = 1
resp._auth = 1
self.delRequestVar(req, self.auth_cookie)