From cac5c987dbe849189a89846e71ab21e9b8c7cb10 Mon Sep 17 00:00:00 2001 From: Christoph Burschka Date: Sat, 3 Sep 2016 15:24:18 +0200 Subject: Fix the JSON content type. --- plugins/session/www/rpc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.1