From 158e2f4b38e279f7b95d7be625d7949cafaaa4ab Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Sun, 18 Jan 2009 12:47:05 -0500 Subject: [PATCH] Prototype won't parse the responseText into responseJSON unless the content type is 'application/json'. This (finally) gets the autocompleter working for me again :) --- kronolith/imple.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.11.0