Prototype won't parse the responseText into responseJSON unless the
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 18 Jan 2009 17:47:05 +0000 (12:47 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 18 Jan 2009 17:47:05 +0000 (12:47 -0500)
content type is 'application/json'.  This (finally) gets the autocompleter
working for me again :)

kronolith/imple.php

index 470b0ed..96c9634 100644 (file)
@@ -49,7 +49,7 @@ if (!empty($_SERVER['Content-Type'])) {
 
 switch ($ct) {
 case 'json':
-    header('Content-Type: text/x-json');
+    header('Content-Type: application/json');
     require_once 'Horde/Serialize.php';
     echo Horde_Serialize::serialize($result, SERIALIZE_JSON, NLS::getCharset());
     break;