summaryrefslogtreecommitdiffstats
path: root/lib/private/appframework/http
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-06 16:58:39 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-11 17:54:08 +0200
commitd8da79cab0838ff9ffb3929a7bf854d8d5dc0797 (patch)
tree470c064510dec840659da10bfef2a7edea4367c8 /lib/private/appframework/http
parent4dca2038bf3dbc8f17f08e9479de886483ba1e4b (diff)
downloadnextcloud-server-d8da79cab0838ff9ffb3929a7bf854d8d5dc0797.tar.gz
nextcloud-server-d8da79cab0838ff9ffb3929a7bf854d8d5dc0797.zip
add test for not failing when adding more comments after type parameters, do not limit x-www-form-urlencoded to POST
Diffstat (limited to 'lib/private/appframework/http')
-rw-r--r--lib/private/appframework/http/dispatcher.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/private/appframework/http/dispatcher.php b/lib/private/appframework/http/dispatcher.php
index 532e49540b1..9015d650250 100644
--- a/lib/private/appframework/http/dispatcher.php
+++ b/lib/private/appframework/http/dispatcher.php
@@ -137,11 +137,8 @@ class Dispatcher {
$value === 'false' &&
(
$this->request->method === 'GET' ||
- (
- $this->request->method === 'POST' &&
- strpos($this->request->getHeader('Content-Type'),
- 'application/x-www-form-urlencoded') !== false
- )
+ strpos($this->request->getHeader('Content-Type'),
+ 'application/x-www-form-urlencoded') !== false)
)
) {
$value = false;