Browse Source

json header

stany.ferer 2 năm trước cách đây
mục cha
commit
c348a25db9
2 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 2 0
      public-cms/json.php
  2. 2 0
      public-events/json.php

+ 2 - 0
public-cms/json.php

@@ -6,5 +6,7 @@ require_once "../conf.inc.php";
 require_once DIR_PHP_LAYOUTS . "header.php";
 require_once DIR_PHP_LAYOUTS . "cms.session.php";
 
+header('Content-type: application/json');
+
 get::json();
 get::jsonData();

+ 2 - 0
public-events/json.php

@@ -6,5 +6,7 @@ require_once "../conf.inc.php";
 require_once DIR_PHP_LAYOUTS . "header.php";
 require_once DIR_PHP_LAYOUTS . "events.session.php";
 
+header('Content-type: application/json');
+
 get::json();
 get::jsonData();