git.cweiske.de
/
anoweco.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00afc04
)
fix JSON format
author
Christian Weiske
<cweiske@cweiske.de>
Thu, 15 Sep 2016 16:06:21 +0000
(18:06 +0200)
committer
Christian Weiske
<cweiske@cweiske.de>
Thu, 15 Sep 2016 16:06:21 +0000
(18:06 +0200)
www/micropub.php
patch
|
blob
|
history
diff --git
a/www/micropub.php
b/www/micropub.php
index e028782695fa5ea686b464fa2f125763eb620984..b76d997f609285ed867188f220407692d66f2ae9 100644
(file)
--- 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/j
avascript
') {
- $input = file_get_contents('php://
stdin
');
+ } else if ($ctype == 'application/j
son
') {
+ $input = file_get_contents('php://
input
');
$json = json_decode($input);
if ($json === null) {
mpError(