Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2016-01-18 11:24:23 +0300
committerMichal Čihař <michal@cihar.com>2016-01-19 10:32:34 +0300
commit0a24f92d081033576bfdd9d4bdec1a54501734c1 (patch)
treeabb51a6dc50c84a40cfbd429a65704f7e3ee38fc /import_status.php
parentdbb267308dfcc458570e3c0af7835059aa06126c (diff)
Set correct content type for JSON responses
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'import_status.php')
-rw-r--r--import_status.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/import_status.php b/import_status.php
index c4b442f456..e46b24319b 100644
--- a/import_status.php
+++ b/import_status.php
@@ -75,12 +75,12 @@ if (defined('SESSIONUPLOAD')) {
}
*/
-// AJAX requests can't be cached!
-PMA_noCacheHeader();
-
// $_GET["message"] is used for asking for an import message
if (isset($_GET["message"]) && $_GET["message"]) {
+ // AJAX requests can't be cached!
+ PMA_noCacheHeader();
+
header('Content-type: text/html');
// wait 0.3 sec before we check for $_SESSION variable,