We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 657aebd commit e3f863dCopy full SHA for e3f863d
system/core/request.php
@@ -60,7 +60,12 @@ final private function __construct() {
60
$this->request = $this->filter($this->request);
61
$this->cookie = $this->filter($this->cookie);
62
$this->files = $this->filter($this->files);
63
- $this->method = strtolower($_SERVER['REQUEST_METHOD'] ?? 'GET');
+ $this->method = strtolower($_SERVER['REQUEST_METHOD'] ?? 'get');
64
+
65
+ if ($this->method == 'put' || $this->method == 'patch') {
66
+ parse_str(file_get_contents('php://input'), $post);
67
+ $this->post = $this->filter($post, false);
68
+ }
69
70
$this->request = array_merge($this->request, $this->get, $this->post);
71
}
0 commit comments