We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca52a4c commit fe8eb48Copy full SHA for fe8eb48
lib/Helper/RestParameterParser.php
@@ -8,6 +8,7 @@
8
class RestParameterParser {
9
private const CHARSET = 'charset';
10
private const CONTENT_TYPE = 'CONTENT_TYPE';
11
+ private const REQUEST_METHOD = 'REQUEST_METHOD';
12
13
/**
14
* @var IL10N
@@ -143,6 +144,6 @@ private function getEncoding(string $header): string {
143
144
* @return bool true, if the request is a POST request.
145
*/
146
private function isPost(): bool {
- return $_SERVER['REQUEST_METHOD'] === 'POST';
147
+ return $_SERVER[self::REQUEST_METHOD] === 'POST';
148
}
149
0 commit comments