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

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/Tracker.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/Tracker.php b/core/Tracker.php
index da77845796..a1d0695fd3 100644
--- a/core/Tracker.php
+++ b/core/Tracker.php
@@ -77,6 +77,9 @@ class Tracker
if (empty($GLOBALS['PIWIK_TRACKER_DEBUG'])) {
$GLOBALS['PIWIK_TRACKER_DEBUG'] = self::isDebugEnabled();
}
+ if (!empty($GLOBALS['PIWIK_TRACKER_DEBUG']) && !Common::isPhpCliMode()) {
+ Common::sendHeader('Content-Type: text/plain');
+ }
PluginManager::getInstance()->loadTrackerPlugins();
}