SVN: Zope/branches/2.13/ Do not guess it is a webdav request if the http method is purge
Partick Gerken <[email protected]> Thu, 12 Jul 2012 07:47:47 -0400 (EDT)
| Newsgroups | gmane.comp.web.zope.cvs |
|---|---|
| Message-ID | <20120712114747.30FAF940D4__27954.102427657$1342093681$gmane$org@cvs.zope.org> |
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
_______________________________________________
Zope-Checkins maillist - [email protected]
https://mail.zope.org/mailman/listinfo/zope-checkins