aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-06-11 01:20:09 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-06-11 01:20:09 +0200
commit93169eca1e754bf9a91599f7a7a84e461cfd974f (patch)
tree58298835ff454b93d2975494e0cc3493a6c01d2d /tests
parent0252d39bb6b1e659b03840c5a1a599d90a92c291 (diff)
downloadnextcloud-server-93169eca1e754bf9a91599f7a7a84e461cfd974f.tar.gz
nextcloud-server-93169eca1e754bf9a91599f7a7a84e461cfd974f.zip
also handle lowercase headers
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/appframework/controller/ControllerTest.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/lib/appframework/controller/ControllerTest.php b/tests/lib/appframework/controller/ControllerTest.php
index 1a09925ef69..e97ec548939 100644
--- a/tests/lib/appframework/controller/ControllerTest.php
+++ b/tests/lib/appframework/controller/ControllerTest.php
@@ -185,4 +185,13 @@ class ControllerTest extends \PHPUnit_Framework_TestCase {
}
+ public function testResponderAcceptHeaderParsedUpperCase() {
+ $responder = $this->controller->getResponderByHTTPHeader(
+ '*/*, apPlication/ToM, application/json'
+ );
+
+ $this->assertEquals('tom', $responder);
+ }
+
+
}