projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a99e1d2
)
Prototype won't parse the responseText into responseJSON unless the
author
Michael J. Rubinsky
<mrubinsk@horde.org>
Sun, 18 Jan 2009 17:47:05 +0000
(12:47 -0500)
committer
Michael 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
patch
|
blob
|
history
diff --git
a/kronolith/imple.php
b/kronolith/imple.php
index
470b0ed
..
96c9634
100644
(file)
--- 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;