[CMF-checkins] CVS: CMF/CMFCore - CookieCrumbler.py:1.13

Florent Guillaume fg@nuxeo.com
Thu, 25 Jul 2002 09:44:38 -0400


Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv17903

Modified Files:
	CookieCrumbler.py 
Log Message:
Fixed CookieCrumbler to emit "Basic" and not "basic" auth.


=== CMF/CMFCore/CookieCrumbler.py 1.12 => 1.13 ===
                 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):
@@ -142,7 +142,7 @@
             elif req.has_key(self.auth_cookie):
                 # Copy __ac to the auth header.
                 ac = unquote(req[self.auth_cookie])
-                req._auth = 'basic %s' % ac
+                req._auth = 'Basic %s' % ac
                 req._cookie_auth = 1
                 resp._auth = 1
                 self.delRequestVar(req, self.auth_cookie)