From 77547c22ee2dfc6634b5111b05fc3cc35a9caf6a Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Thu, 15 Sep 2016 18:06:21 +0200 Subject: [PATCH] fix JSON format --- www/micropub.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/micropub.php b/www/micropub.php index e028782..b76d997 100644 --- a/www/micropub.php +++ b/www/micropub.php @@ -211,8 +211,8 @@ if ($_SERVER['REQUEST_METHOD'] == 'GET') { $json = $base; $json->properties = (object) $data; handleCreate($json, $token); - } else if ($ctype == 'application/javascript') { - $input = file_get_contents('php://stdin'); + } else if ($ctype == 'application/json') { + $input = file_get_contents('php://input'); $json = json_decode($input); if ($json === null) { mpError( -- 2.30.2