Skip to content

Commit 38bd9bc

Browse files
[HttpFoundation] Remove invalid HTTP method from exception message
1 parent 3f38426 commit 38bd9bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Request.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1294,7 +1294,7 @@ public function getMethod()
12941294
}
12951295

12961296
if (!preg_match('/^[A-Z]++$/D', $method)) {
1297-
throw new SuspiciousOperationException(sprintf('Invalid method override "%s".', $method));
1297+
throw new SuspiciousOperationException('Invalid HTTP method override.');
12981298
}
12991299

13001300
return $this->method = $method;

0 commit comments

Comments
 (0)