test/post-test.php
branchnew-model
changeset 931 0fdce6e14748
parent 928 5aadbc9f27cd
--- a/test/post-test.php	Fri Jul 27 19:22:54 2012 +0200
+++ b/test/post-test.php	Tue Aug 21 18:54:36 2012 +0200
@@ -1,6 +1,6 @@
 <?php
 
-$data = json_decode($HTTP_RAW_POST_DATA);
+$data = json_decode(file_get_contents("php://input"));
 
 if (!isset($data->annotations[0]->id)) {
     $data->annotations[0]->id = uniqid("annotation_");