Skip to content

Commit

Permalink
Updated README with input stream
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Louys authored Aug 18, 2016
1 parent ec4f6d8 commit 94920a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ $cookieBuilder = new CookieBuilder;
// Disable the secure flag because this is only an example
$cookieBuilder->setDefaultSecure(false);

$request = new HttpRequest($_GET, $_POST, $_COOKIE, $_FILES, $_SERVER);
$request = new HttpRequest($_GET, $_POST, $_COOKIE, $_FILES, $_SERVER, file_get_contents('php://input'));
$response = new HttpResponse;

$content = '<h1>Hello World</h1>';
Expand Down

0 comments on commit 94920a9

Please sign in to comment.