diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-07-31 22:33:11 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-08-10 23:27:58 +0200 |
commit | ca1454ab1a9a20f51544d8822b4c16ef00c35264 (patch) | |
tree | 255ad77febc1f124478647f5478ab7752f308dd8 /lib/route.php | |
parent | 3e8b6e816a3f89ac20f22fdde630946058e5d184 (diff) | |
download | nextcloud-server-ca1454ab1a9a20f51544d8822b4c16ef00c35264.tar.gz nextcloud-server-ca1454ab1a9a20f51544d8822b4c16ef00c35264.zip |
Routing: Method needs to be uppercase
Diffstat (limited to 'lib/route.php')
-rw-r--r-- | lib/route.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/route.php b/lib/route.php index 0d3339add6c..df3a18e844f 100644 --- a/lib/route.php +++ b/lib/route.php @@ -10,27 +10,27 @@ use Symfony\Component\Routing\Route; class OC_Route extends Route { public function method($method) { - $this->setRequirement('_method', $method); + $this->setRequirement('_method', strtoupper($method)); return $this; } public function post() { - $this->method('post'); + $this->method('POST'); return $this; } public function get() { - $this->method('get'); + $this->method('GET'); return $this; } public function put() { - $this->method('put'); + $this->method('PUT'); return $this; } public function delete() { - $this->method('delete'); + $this->method('DELETE'); return $this; } |