Skip to content
Snippets Groups Projects
Commit e624e906 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #11965 from owncloud/fix-jsonresponse

fix typo in content type for JSONResponse
parents 06267fec 91a23bfa
No related branches found
No related tags found
No related merge requests found
......@@ -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');
}
......
......@@ -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']);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment