From 3a8661ec2e3a097fbde6ed512c16215acd23b397 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Mon, 12 Sep 2011 12:58:07 +0100 Subject: Change JSON response header for browsing map, so is not double-encoded. Add tests for it. --- perllib/FixMyStreet/App/Controller/Around.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perllib/FixMyStreet/App/Controller/Around.pm') 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); -- cgit v1.2.3