From: Bernhard Posselt Date: Wed, 5 Nov 2014 11:04:56 +0000 (+0100) Subject: fix typo in content type X-Git-Tag: v8.0.0alpha1~369^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=91a23bfa9c9b3d7dd5f564910ad99be2316c15e0;p=nextcloud-server.git fix typo in content type --- diff --git a/lib/public/appframework/http/jsonresponse.php b/lib/public/appframework/http/jsonresponse.php index c6360e0a0f5..c9c8696323d 100644 --- a/lib/public/appframework/http/jsonresponse.php +++ b/lib/public/appframework/http/jsonresponse.php @@ -49,7 +49,7 @@ class JSONResponse extends Response { public function __construct($data=array(), $statusCode=Http::STATUS_OK) { $this->data = $data; $this->setStatus($statusCode); - $this->addHeader('Content-type', 'application/json; charset=utf-8'); + $this->addHeader('Content-Type', 'application/json; charset=utf-8'); } diff --git a/tests/lib/appframework/http/JSONResponseTest.php b/tests/lib/appframework/http/JSONResponseTest.php index f7c89a9d2e1..06cd3410a69 100644 --- a/tests/lib/appframework/http/JSONResponseTest.php +++ b/tests/lib/appframework/http/JSONResponseTest.php @@ -44,7 +44,7 @@ class JSONResponseTest extends \PHPUnit_Framework_TestCase { public function testHeader() { $headers = $this->json->getHeaders(); - $this->assertEquals('application/json; charset=utf-8', $headers['Content-type']); + $this->assertEquals('application/json; charset=utf-8', $headers['Content-Type']); }