Skip to content

Commit

Permalink
Request object returns empty parameters when we make a POST method, a…
Browse files Browse the repository at this point in the history
…nd spoof it as a GET request using X-HTTP-METHOD-OVERRIDE or _method parameter (#15410)

Fix issue where request object fails to return parameters when we make a POST method, and spoof it as a GET request using X-HTTP-METHOD-OVERRIDE or _method parameter

#15348
  • Loading branch information
bs-thomas authored and taylorotwell committed Sep 16, 2016
1 parent 98cf37f commit b63b52e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ protected function getInputSource()
return $this->json();
}

return $this->getMethod() == 'GET' ? $this->query : $this->request;
return $this->getRealMethod() == 'GET' ? $this->query : $this->request;
}

/**
Expand Down

0 comments on commit b63b52e

Please sign in to comment.