set correct content type for JSON requests
This commit is contained in:
parent
f2168738bd
commit
27d1ea33c9
|
@ -93,7 +93,7 @@ class lamAjax {
|
||||||
/**
|
/**
|
||||||
* Sets JSON HTTP header.
|
* Sets JSON HTTP header.
|
||||||
*/
|
*/
|
||||||
private function setHeader() {
|
private static function setHeader() {
|
||||||
if (!headers_sent()) {
|
if (!headers_sent()) {
|
||||||
header('Content-Type: application/json; charset=utf-8');
|
header('Content-Type: application/json; charset=utf-8');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue