From: Michael J. Rubinsky Date: Sun, 18 Jan 2009 17:47:05 +0000 (-0500) Subject: Prototype won't parse the responseText into responseJSON unless the X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=158e2f4b38e279f7b95d7be625d7949cafaaa4ab;p=horde.git Prototype won't parse the responseText into responseJSON unless the content type is 'application/json'. This (finally) gets the autocompleter working for me again :) --- diff --git a/kronolith/imple.php b/kronolith/imple.php index 470b0edfe..96c9634e4 100644 --- a/kronolith/imple.php +++ b/kronolith/imple.php @@ -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;