aboutsummaryrefslogtreecommitdiffstats
path: root/web/json.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'web/json.cgi')
-rwxr-xr-xweb/json.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/json.cgi b/web/json.cgi
index 91f2676a7..01ef2b8bb 100755
--- a/web/json.cgi
+++ b/web/json.cgi
@@ -6,7 +6,7 @@
# Copyright (c) 2009 UK Citizens Online Democracy. All rights reserved.
# Email: louise@mysociety.org. WWW: http://www.mysociety.org
#
-# $Id: json.cgi,v 1.1 2009-07-01 09:45:12 louise Exp $
+# $Id: json.cgi,v 1.2 2009-07-01 09:55:45 louise Exp $
use strict;
use Error qw(:try);
@@ -19,7 +19,7 @@ sub main {
my $type = $q->param('type') || '';
my $start_date = $q->param('start_date') || '';
my $end_date = $q->param('end_date') || '';
- print $q->header( -type => 'text/html; charset=utf-8' );
+ print $q->header( -type => 'application/json; charset=utf-8' );
if ($type eq 'new_problems'){
$problems = Problems::created_in_interval($start_date, $end_date);
} elsif ($type eq 'fixed_problems') {