diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-12-17 17:16:42 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2020-02-14 10:38:26 +0000 |
commit | 43290e5f733b4e88c6b4e5467b7e446a416a4682 (patch) | |
tree | 7755afdfee2df3a16e2482ccead7e2af3629c062 /perllib/FixMyStreet/TestMech.pm | |
parent | 7a40c15ea58b9475b40171f50a896fb79b470a94 (diff) |
A basic web manifest starter.
Reads information from a theme object if present, and icons from a
theme directory, with fallbacks.
Diffstat (limited to 'perllib/FixMyStreet/TestMech.pm')
-rw-r--r-- | perllib/FixMyStreet/TestMech.pm | 2 |
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 ); } |