Skip to content
Permalink
Browse files

Make sure JSON tests work with content-types that end with "+json".

  • Loading branch information
cyrusdaboo committed Nov 17, 2014
1 parent f8c09ba commit c331b13529fd5d408f79e679c70de9b22cbefde1
Showing with 2 additions and 2 deletions.
  1. +2 −2 verifiers/jsonPointerMatch.py
@@ -44,8 +44,8 @@ def verify(self, manager, uri, response, respdata, args): #@UnusedVariable
return False, " No response body"

# Must be application/json
ct = response.msg.getheaders("content-type")
if ct[0].split(";")[0] != "application/json":
ct = response.msg.getheaders("content-type")[0].split(";")[0]
if ct != "application/json" and not ct.endswith("+json"):
return False, " Wrong Content-Type: %s" % (ct,)

# Read in json

0 comments on commit c331b13

Please sign in to comment.
You can’t perform that action at this time.