Skip to content

Commit

Permalink
Fix empty parameters when make a POST request and spoof it as a GET u…
Browse files Browse the repository at this point in the history
…sing X-HTTP-METHOD-OVERRIDE or _method parameter (laravel#17409)
  • Loading branch information
jbaron-mx authored and taylorotwell committed Jan 19, 2017
1 parent 411dbbf commit 98257f0
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 @@ -565,7 +565,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 98257f0

Please sign in to comment.