mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
fix typo in content type
This commit is contained in:
parent
c8f55e7f87
commit
91a23bfa9c
2 changed files with 2 additions and 2 deletions
|
|
@ -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']);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue