From: Christian Weiske Date: Thu, 15 Sep 2016 16:06:21 +0000 (+0200) Subject: fix JSON format X-Git-Tag: v1.0.0~16 X-Git-Url: https://git.cweiske.de/anoweco.git/commitdiff_plain/77547c22ee2dfc6634b5111b05fc3cc35a9caf6a?hp=00afc044a037aaaa075ad2a4d0514e84fac82c15 fix JSON format --- 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(