We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50c8ecf commit b2201b6Copy full SHA for b2201b6
1 file changed
src/Request.php
@@ -135,13 +135,10 @@ public static function getMethod() {
135
$meth = getenv('REQUEST_METHOD');
136
137
if ($meth === false) {
138
- $meth = $_SERVER['REQUEST_METHOD'];
+ $meth = isset($_SERVER['REQUEST_METHOD']) ? $_SERVER['REQUEST_METHOD'] : '';
139
}
140
$method = filter_var($meth, FILTER_SANITIZE_STRING);
141
142
- if ($method === false) {
143
-
144
- }
145
146
if (!in_array($method, self::METHODS)) {
147
$method = 'GET';
0 commit comments