summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/route/route.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/route/route.php b/lib/private/route/route.php
index cb864d3d73d..b33360f11ec 100644
--- a/lib/private/route/route.php
+++ b/lib/private/route/route.php
@@ -37,7 +37,7 @@ class Route extends SymfonyRoute implements IRoute {
* @return \OC\Route\Route
*/
public function method($method) {
- $this->setRequirement('_method', strtoupper($method));
+ $this->setMethods($method);
return $this;
}
@@ -109,7 +109,7 @@ class Route extends SymfonyRoute implements IRoute {
* @return \OC\Route\Route
*/
public function requirements($requirements) {
- $method = $this->getRequirement('_method');
+ $method = $this->getMethods();
$this->setRequirements($requirements);
if (isset($requirements['_method'])) {
$method = $requirements['_method'];