[Zope-dev] Cookie Crumbler ignores HTTP HEAD?
Brent Hendricks
brentmh@rice.edu
Fri, 25 Apr 2003 10:12:54 -0500
This is a multi-part message in MIME format.
--------------020709000001040204070300
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Shane Hathaway wrote:
> Brent Hendricks wrote:
>> Cool, thanks for reply. If I send in the 1-line patch is there a
>> chance of it getting applied on the 2.6/2.7 branch?
>
>
> CookieCrumbler isn't a part of core Zope. Send me the patch and I'll
Errr yeah, I knew that :)
> include it in CMF and the standalone product.
OK, Attaching. Thanks!
--Brent
--------------020709000001040204070300
Content-Type: text/plain;
name="cc-patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="cc-patch"
Index: CookieCrumbler.py
===================================================================
RCS file: /cvs-repository/Products/CookieCrumbler/CookieCrumbler.py,v
retrieving revision 1.12
diff -u -r1.12 CookieCrumbler.py
--- CookieCrumbler.py 19 Feb 2003 19:03:20 -0000 1.12
+++ CookieCrumbler.py 24 Apr 2003 22:33:18 -0000
@@ -123,7 +123,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' ):
--------------020709000001040204070300--