Skip to content

Commit

Permalink
updating helper file to make sure it will work for all new tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Hallvord Reiar M. Steen committed May 21, 2013
1 parent e4e5056 commit 74c4c6e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions XMLHttpRequest/resources/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
header("X-Request-Query: " . (isset($_SERVER["QUERY_STRING"]) ? $_SERVER["QUERY_STRING"] : "NO"));
header("X-Request-Content-Length: " . (isset($_SERVER["CONTENT_LENGTH"]) ? $_SERVER["CONTENT_LENGTH"] : "NO"));
header("X-Request-Content-Type: " . (isset($_SERVER["CONTENT_TYPE"]) ? $_SERVER["CONTENT_TYPE"] : "NO"));
echo file_get_contents("php://input");
exit;
if (isset($_GET["content"]))
{
echo $_GET["content"];
}
else
{
echo file_get_contents("php://input");
}
exit;
?>

0 comments on commit 74c4c6e

Please sign in to comment.