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

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


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

Modified Files:
      Tag: CMF-1_3-branch
	CookieCrumbler.py 
Log Message:
Merged change from HEAD:

Fixed CookieCrumbler to emit "Basic" and not "basic" auth as per HTTP spec.



=== CMF/CMFCore/CookieCrumbler.py 1.12 => 1.12.36.1 ===
                 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)