"show graph json" action: Return the correct MIME type.
authorFlorian Forster <ff@octo.it>
Tue, 6 Jul 2010 20:38:45 +0000 (22:38 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Tue, 6 Jul 2010 20:38:45 +0000 (22:38 +0200)
src/action_show_graph_json.c

index 402627c..a1cf011 100644 (file)
@@ -105,7 +105,7 @@ int action_show_graph_json (void) /* {{{ */
     return (ENOMEM);
   }
 
-  printf ("Content-Type: text/plain\n");
+  printf ("Content-Type: application/json\n");
 
   now = time (NULL);
   status = time_to_rfc1123 (now + 300, time_buffer, sizeof (time_buffer));