aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Around.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-09-12 12:58:07 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-09-12 12:58:07 +0100
commit3a8661ec2e3a097fbde6ed512c16215acd23b397 (patch)
treebb91f882970d3a6d4e67834ea85bebdf36c60bca /perllib/FixMyStreet/App/Controller/Around.pm
parent1e152d2b7e69e81193a3e8a46e36cb969ebef023 (diff)
Change JSON response header for browsing map, so is not double-encoded. Add tests for it.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Around.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Around.pm2
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);