Browse Source

Merge pull request #10124 from dakota/fix-request-input

Fixes request input
Mark Story 9 years ago
parent
commit
4cc6a9a976
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/Http/ServerRequest.php

+ 1 - 0
src/Http/ServerRequest.php

@@ -1539,6 +1539,7 @@ class ServerRequest implements ArrayAccess, ServerRequestInterface
      */
     public function input($callback = null, ...$args)
     {
+        $this->stream->rewind();
         $input = $this->stream->getContents();
         if ($callback) {
             array_unshift($args, $input);