[CalendarServer-changes] [12545] CalDAVTester/trunk/verifiers/jsonPointerMatch.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Mar 12 11:19:02 PDT 2014


Revision: 12545
          http://trac.calendarserver.org//changeset/12545
Author:   cdaboo at apple.com
Date:     2014-02-03 14:00:02 -0800 (Mon, 03 Feb 2014)
Log Message:
-----------
Handle parameters in content type.

Modified Paths:
--------------
    CalDAVTester/trunk/verifiers/jsonPointerMatch.py

Modified: CalDAVTester/trunk/verifiers/jsonPointerMatch.py
===================================================================
--- CalDAVTester/trunk/verifiers/jsonPointerMatch.py	2014-02-03 21:30:41 UTC (rev 12544)
+++ CalDAVTester/trunk/verifiers/jsonPointerMatch.py	2014-02-03 22:00:02 UTC (rev 12545)
@@ -45,7 +45,7 @@
 
         # Must be application/json
         ct = response.msg.getheaders("content-type")
-        if ct[0] != "application/json":
+        if ct[0].split(";")[0] != "application/json":
             return False, "        Wrong Content-Type: %s" % (ct,)
 
         # Read in json
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140312/31c0a1e5/attachment.html>


More information about the calendarserver-changes mailing list