Skip to content

Commit 3835956

Browse files
committed
+ support for */xml content_type
1 parent 97885d8 commit 3835956

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

djangodav/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
# You should have received a copy of the GNU Affero General Public License
2020
# along with DjangoDav. If not, see <http://www.gnu.org/licenses/>.
2121

22-
VERSION = (0, 0, 1, 'beta', 18)
23-
__version__ = "0.0.1b18"
22+
VERSION = (0, 0, 1, 'beta', 19)
23+
__version__ = "0.0.1b19"

djangodav/views/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def dispatch(self, request, path, *args, **kwargs):
5555
meta = request.META.get
5656
self.xbody = kwargs['xbody'] = None
5757
if (request.method.lower() != 'put'
58-
and meta('CONTENT_TYPE', '').startswith('text/xml')
58+
and "/xml" in meta('CONTENT_TYPE', '')
5959
and meta('CONTENT_LENGTH', 0) != ''
6060
and int(meta('CONTENT_LENGTH', 0)) > 0):
6161
self.xbody = kwargs['xbody'] = etree.XPathDocumentEvaluator(

0 commit comments

Comments
 (0)