set correct content type for JSON requests

This commit is contained in:
Roland Gruber 2016-01-16 19:19:48 +00:00
parent f2168738bd
commit 27d1ea33c9
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ class lamAjax {
/**
* Sets JSON HTTP header.
*/
private function setHeader() {
private static function setHeader() {
if (!headers_sent()) {
header('Content-Type: application/json; charset=utf-8');
}