Index: includes/common.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/common.inc,v retrieving revision 1.1159 diff -u -5 -p -u -r1.1159 common.inc --- includes/common.inc 1 May 2010 08:12:22 -0000 1.1159 +++ includes/common.inc 4 May 2010 09:49:02 -0000 @@ -4330,12 +4330,12 @@ function drupal_json_decode($var) { * * @param $var * (optional) If set, the variable will be converted to JSON and output. */ function drupal_json_output($var = NULL) { - // We are returning JavaScript, so tell the browser. - drupal_add_http_header('Content-Type', 'text/javascript; charset=utf-8'); + // We are returning JSON, so tell the browser. + drupal_add_http_header('Content-Type', 'application/json'); if (isset($var)) { echo drupal_json_encode($var); } }