diff --git a/lib/private/appframework/http/dispatcher.php b/lib/private/appframework/http/dispatcher.php index 532e49540b189352495bb419639299509da2f310..9015d65025099c7832c9e86bbcda003df01b8e4d 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; diff --git a/tests/lib/appframework/http/DispatcherTest.php b/tests/lib/appframework/http/DispatcherTest.php index ba1e989cce94c1203c0873e580acde634b079465..d1296f9cf0f247344bb5e05be63a0f7ca55eca40 100644 --- a/tests/lib/appframework/http/DispatcherTest.php +++ b/tests/lib/appframework/http/DispatcherTest.php @@ -319,7 +319,7 @@ class DispatcherTest extends \PHPUnit_Framework_TestCase { 'HTTP_ACCEPT' => 'application/text, test', 'HTTP_CONTENT_TYPE' => 'application/x-www-form-urlencoded' ), - 'method' => 'POST' + 'method' => 'PUT' )); $this->dispatcher = new Dispatcher( $this->http, $this->middlewareDispatcher, $this->reflector, diff --git a/tests/lib/appframework/utility/ControllerMethodReflectorTest.php b/tests/lib/appframework/utility/ControllerMethodReflectorTest.php index 2a7c0031581bd9f80a0a651da0daf74d5b9ed490..3659a6b206c184a5755893014dfe7471c7dbd403 100644 --- a/tests/lib/appframework/utility/ControllerMethodReflectorTest.php +++ b/tests/lib/appframework/utility/ControllerMethodReflectorTest.php @@ -75,7 +75,7 @@ class ControllerMethodReflectorTest extends \PHPUnit_Framework_TestCase { /** * @Annotation - * @param double $test + * @param double $test something special */ public function testReadTypeDoubleAnnotations(){ $reader = new ControllerMethodReflector();