[Zope-Checkins] SVN: Zope/branches/2.13/ Do not guess it is a webdav request if the http method is purge
Partick Gerken
cvs-admin at zope.org
Thu Jul 12 11:47:47 UTC 2012
Log message for revision 127342:
Do not guess it is a webdav request if the http method is purge
Changed:
U Zope/branches/2.13/doc/CHANGES.rst
U Zope/branches/2.13/src/ZPublisher/BaseRequest.py
-=-
Modified: Zope/branches/2.13/doc/CHANGES.rst
===================================================================
--- Zope/branches/2.13/doc/CHANGES.rst 2012-07-12 10:26:12 UTC (rev 127341)
+++ Zope/branches/2.13/doc/CHANGES.rst 2012-07-12 11:47:43 UTC (rev 127342)
@@ -16,6 +16,8 @@
- ZPublisher: Do not assume that you can iterate over a publishable object
+- ZPublisher: Do not guess it is a webdav request if the http method is purge
+
2.13.15 (2012-06-22)
--------------------
Modified: Zope/branches/2.13/src/ZPublisher/BaseRequest.py
===================================================================
--- Zope/branches/2.13/src/ZPublisher/BaseRequest.py 2012-07-12 10:26:12 UTC (rev 127341)
+++ Zope/branches/2.13/src/ZPublisher/BaseRequest.py 2012-07-12 11:47:43 UTC (rev 127342)
@@ -379,7 +379,7 @@
# How did this request come in? (HTTP GET, PUT, POST, etc.)
method = request_get('REQUEST_METHOD', 'GET').upper()
- if method=='GET' or method=='POST' and not isinstance(response,
+ if method in ["GET", "POST", "PURGE"] and not isinstance(response,
xmlrpc.Response):
# Probably a browser
no_acquire_flag=0
More information about the Zope-Checkins
mailing list