summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Burschka2016-09-03 15:24:18 +0200
committerChristoph Burschka2016-09-03 15:24:18 +0200
commitcac5c987dbe849189a89846e71ab21e9b8c7cb10 (patch)
tree4d63c73ebbb4c4e16c35b29ea4c88ade5d3fdebb
parentFix #14: Add wordpress plugin. (diff)
downloadejabberd-auth-php-cac5c987dbe849189a89846e71ab21e9b8c7cb10.tar.gz
Fix the JSON content type.
-rw-r--r--plugins/session/www/rpc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/session/www/rpc.php b/plugins/session/www/rpc.php
index 9e27bc3..5efdf82 100644
--- a/plugins/session/www/rpc.php
+++ b/plugins/session/www/rpc.php
@@ -7,7 +7,7 @@ require_once SESS_ROOT . 'main.php';
if (!empty($_POST['salt']) && strlen($_POST['salt']) >= 16) {
$entry = create_key($_POST['salt']);
if ($entry) {
- header('Content-type: text/plain; charset=UTF-8');
+ header('Content-type: application/json');
print json_encode($entry);
}
else {