diff options
author | Christoph Burschka | 2016-09-03 15:24:18 +0200 |
---|---|---|
committer | Christoph Burschka | 2016-09-03 15:24:18 +0200 |
commit | cac5c987dbe849189a89846e71ab21e9b8c7cb10 (patch) | |
tree | 4d63c73ebbb4c4e16c35b29ea4c88ade5d3fdebb /plugins/session/www | |
parent | Fix #14: Add wordpress plugin. (diff) | |
download | ejabberd-auth-php-cac5c987dbe849189a89846e71ab21e9b8c7cb10.tar.gz |
Fix the JSON content type.
Diffstat (limited to 'plugins/session/www')
-rw-r--r-- | plugins/session/www/rpc.php | 2 |
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 { |