[Pkg-owncloud-commits] [owncloud] 26/34: fix typo in content type
    David Prévot 
    taffit at moszumanska.debian.org
       
    Fri Nov  7 11:44:12 UTC 2014
    
    
  
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 6d7a5bf943494cf573d2daad4d2839a8715cd8c9
Author: Bernhard Posselt <dev at bernhard-posselt.com>
Date:   Wed Nov 5 12:04:56 2014 +0100
    fix typo in content type
---
 lib/public/appframework/http/jsonresponse.php    | 2 +-
 tests/lib/appframework/http/JSONResponseTest.php | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/public/appframework/http/jsonresponse.php b/lib/public/appframework/http/jsonresponse.php
index c6360e0..c9c8696 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 c0c58eb..67f0f53 100644
--- a/tests/lib/appframework/http/JSONResponseTest.php
+++ b/tests/lib/appframework/http/JSONResponseTest.php
@@ -48,7 +48,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']);
 	}
 
 
-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
    
    
More information about the Pkg-owncloud-commits
mailing list