Skip to content
Permalink
Browse files
Use correct content-type for autocompletion url
  • Loading branch information
trasher committed Mar 6, 2020
1 parent 381bf03 commit 5e1c52c5e8a30ceb4e9572964da7ed89ddfb1aaf
Showing 7 changed files with 7 additions and 7 deletions.
@@ -35,7 +35,7 @@
$AJAX_INCLUDE = 1;
}
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
header("Content-Type: application/json; charset=UTF-8");
Html::header_nocache();

Session::checkLoginUser();
@@ -36,7 +36,7 @@

if (strpos($_SERVER['PHP_SELF'], "getDropdownConnect.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
header("Content-Type: application/json; charset=UTF-8");
Html::header_nocache();
} else if (!defined('GLPI_ROOT')) {
die("Sorry. You can't access this file directly");
@@ -37,7 +37,7 @@

include ('../inc/includes.php');

header("Content-Type: text/html; charset=UTF-8");
header("Content-Type: application/json; charset=UTF-8");
Html::header_nocache();

Session::checkLoginUser();
@@ -38,7 +38,7 @@
if (strpos($_SERVER['PHP_SELF'], "getDropdownNetpoint.php")) {
$AJAX_INCLUDE = 1;
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
header("Content-Type: application/json; charset=UTF-8");
Html::header_nocache();
} else if (!defined('GLPI_ROOT')) {
die("Sorry. You can't access this file directly");
@@ -37,7 +37,7 @@
// Direct access to file
if (strpos($_SERVER['PHP_SELF'], "getDropdownNumber.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
header("Content-Type: application/json; charset=UTF-8");
Html::header_nocache();
} else if (!defined('GLPI_ROOT')) {
die("Sorry. You can't access this file directly");
@@ -38,7 +38,7 @@
if (strpos($_SERVER['PHP_SELF'], "getDropdownUsers.php")) {
$AJAX_INCLUDE = 1;
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
header("Content-Type: application/json; charset=UTF-8");
Html::header_nocache();
} else if (!defined('GLPI_ROOT')) {
die("Sorry. You can't access this file directly");
@@ -37,7 +37,7 @@
// Direct access to file
if (strpos($_SERVER['PHP_SELF'], "getDropdownValue.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
header("Content-Type: application/json; charset=UTF-8");
Html::header_nocache();
} else if (!defined('GLPI_ROOT')) {
die("Sorry. You can't access this file directly");

0 comments on commit 5e1c52c

Please sign in to comment.