We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12c32ba commit d5c90a1Copy full SHA for d5c90a1
1 file changed
system/CodeIgniter.php
@@ -986,12 +986,13 @@ public function storePreviousURL($uri)
986
* Modifies the Request Object to use a different method if a POST
987
* variable called _method is found.
988
*
989
- * Does not work on CLI commands.
990
*/
991
public function spoofRequestMethod()
992
{
+ // CLI commands always use 'cli' method
993
if (is_cli())
994
995
+ $this->request->setMethod('cli');
996
return;
997
}
998
0 commit comments