[Checkins] SVN: z3c.dav/trunk/src/z3c/dav/proppatch.py The publisher does the check for the correct content-type - no need to do it

Michael Kerrin michael.kerrin at openapp.ie
Sun Nov 18 10:38:09 EST 2007


Log message for revision 81917:
  The publisher does the check for the correct content-type - no need to do it
  again.
  

Changed:
  U   z3c.dav/trunk/src/z3c/dav/proppatch.py

-=-
Modified: z3c.dav/trunk/src/z3c/dav/proppatch.py
===================================================================
--- z3c.dav/trunk/src/z3c/dav/proppatch.py	2007-11-18 13:32:39 UTC (rev 81916)
+++ z3c.dav/trunk/src/z3c/dav/proppatch.py	2007-11-18 15:38:08 UTC (rev 81917)
@@ -42,8 +42,7 @@
         self.request = request
 
     def PROPPATCH(self):
-        if self.request.content_type not in ("text/xml", "application/xml") \
-               or self.request.xmlDataSource is None:
+        if self.request.xmlDataSource is None:
             raise z3c.dav.interfaces.BadRequest(
                 self.request,
                 message = "All PROPPATCH requests needs a XML body")



More information about the Checkins mailing list