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

Shane Hathaway shane@zope.com
Mon, 28 Apr 2003 17:12:44 -0400


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

Modified Files:
      Tag: CMF-1_3-branch
	CookieCrumbler.py 
Log Message:
Accept authentication on HEAD requests.  Thanks to Brent Hendricks.

=== CMF/CMFCore/CookieCrumbler.py 1.12.36.4 => 1.12.36.5 ===
--- CMF/CMFCore/CookieCrumbler.py:1.12.36.4	Wed Feb 19 14:04:34 2003
+++ CMF/CMFCore/CookieCrumbler.py	Mon Apr 28 17:12:43 2003
@@ -105,7 +105,7 @@
         if req.__class__ is not HTTPRequest:
             return ATTEMPT_DISABLED
 
-        if not req[ 'REQUEST_METHOD' ] in ( 'GET', 'PUT', 'POST' ):
+        if not req[ 'REQUEST_METHOD' ] in ( 'HEAD', 'GET', 'PUT', 'POST' ):
             return ATTEMPT_DISABLED
 
         if req.environ.has_key( 'WEBDAV_SOURCE_PORT' ):