diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-09-12 12:58:07 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-09-12 12:58:07 +0100 |
commit | 3a8661ec2e3a097fbde6ed512c16215acd23b397 (patch) | |
tree | bb91f882970d3a6d4e67834ea85bebdf36c60bca /perllib/FixMyStreet/App/Controller | |
parent | 1e152d2b7e69e81193a3e8a46e36cb969ebef023 (diff) |
Change JSON response header for browsing map, so is not double-encoded. Add tests for it.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Around.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Around.pm b/perllib/FixMyStreet/App/Controller/Around.pm index d3a4500c6..72d6ac62b 100644 --- a/perllib/FixMyStreet/App/Controller/Around.pm +++ b/perllib/FixMyStreet/App/Controller/Around.pm @@ -235,7 +235,7 @@ the map. sub ajax : Path('/ajax') { my ( $self, $c ) = @_; - $c->res->content_type('text/javascript; charset=utf-8'); + $c->res->content_type('application/json; charset=utf-8'); unless ( $c->req->param('bbox') ) { $c->res->status(404); |