Skip to content

Commit

Permalink
Use correct content-type for autocompletion url
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Mar 6, 2020
1 parent 381bf03 commit 5e1c52c
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ajax/autocompletion.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion ajax/getDropdownConnect.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion ajax/getDropdownFindNum.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion ajax/getDropdownNetpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion ajax/getDropdownNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion ajax/getDropdownUsers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion ajax/getDropdownValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 5e1c52c

Please sign in to comment.