Skip to content
Permalink
Browse files

Ensure that stream is rewound before reading

  • Loading branch information...
dakota committed Jan 29, 2017
1 parent 8e5c23a commit 134f54785db931a8556de34e6e04f44af9c7b228
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/Http/ServerRequest.php
@@ -1539,6 +1539,7 @@ public function param($name, ...$args)
*/
public function input($callback = null, ...$args)
{
$this->stream->rewind();
$input = $this->stream->getContents();
if ($callback) {
array_unshift($args, $input);

0 comments on commit 134f547

Please sign in to comment.
You can’t perform that action at this time.