]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix typo in content type
authorBernhard Posselt <dev@bernhard-posselt.com>
Wed, 5 Nov 2014 11:04:56 +0000 (12:04 +0100)
committerBernhard Posselt <dev@bernhard-posselt.com>
Wed, 5 Nov 2014 11:04:56 +0000 (12:04 +0100)
lib/public/appframework/http/jsonresponse.php
tests/lib/appframework/http/JSONResponseTest.php

index c6360e0a0f5a111f38c92322b92789c5378cecb2..c9c8696323d19b853a05b9cecd53ffa8ddbec938 100644 (file)
@@ -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');
        }
 
 
index f7c89a9d2e1b3fb77109d48304d07945c7c6135c..06cd3410a6910be6cef5c2c5b3142ccadc010d4e 100644 (file)
@@ -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']);
        }