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

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


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

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

=== CMF/CMFCore/CookieCrumbler.py 1.18 => 1.18.10.1 ===
--- CMF/CMFCore/CookieCrumbler.py:1.18	Wed Feb 19 14:03:02 2003
+++ CMF/CMFCore/CookieCrumbler.py	Mon Apr 28 17:13:02 2003
@@ -104,7 +104,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' ):