aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/TestMech.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-02-14 12:55:15 +0000
committerMatthew Somerville <matthew@mysociety.org>2020-02-14 12:55:15 +0000
commita5373a4ce9e966f70cd5edf0334c27781d7a2f04 (patch)
tree9bf59ec3fd7b9de0194dc8e997e57e18f787629c /perllib/FixMyStreet/TestMech.pm
parent2530538ca6e36b659a63cc3b67099972fe0116af (diff)
parentf0edab7ee84e4358c279a5a8ec37dbb0ae8f1b3d (diff)
Merge branch 'pwa'
Diffstat (limited to 'perllib/FixMyStreet/TestMech.pm')
-rw-r--r--perllib/FixMyStreet/TestMech.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/TestMech.pm b/perllib/FixMyStreet/TestMech.pm
index 5bb975104..1b7fba1bd 100644
--- a/perllib/FixMyStreet/TestMech.pm
+++ b/perllib/FixMyStreet/TestMech.pm
@@ -585,7 +585,7 @@ sub get_ok_json {
# check that the content-type of response is correct
croak "Response was not JSON"
- unless $res->header('Content-Type') =~ m{^application/json\b};
+ unless $res->header('Content-Type') =~ m{^application/(?:[a-z]+\+)?json\b};
return decode_json( $res->content );
}