Commit 9d23bdab authored by Patrick Gerken's avatar Patrick Gerken

Do not guess it is a webdav request if the http method is purge

parent aaed1747
...@@ -16,6 +16,8 @@ http://docs.zope.org/zope2/releases/. ...@@ -16,6 +16,8 @@ http://docs.zope.org/zope2/releases/.
- ZPublisher: Do not assume that you can iterate over a publishable object - 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) 2.13.15 (2012-06-22)
-------------------- --------------------
......
...@@ -379,7 +379,7 @@ class BaseRequest: ...@@ -379,7 +379,7 @@ class BaseRequest:
# How did this request come in? (HTTP GET, PUT, POST, etc.) # How did this request come in? (HTTP GET, PUT, POST, etc.)
method = request_get('REQUEST_METHOD', 'GET').upper() 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): xmlrpc.Response):
# Probably a browser # Probably a browser
no_acquire_flag=0 no_acquire_flag=0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment