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
path: root/misc
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2015-07-12 19:54:13 +0300
committermattab <matthieu.aubry@gmail.com>2015-07-12 19:54:13 +0300
commit15e4a6942a6a1f83b9f21daa3c5549d7937e6956 (patch)
tree83fa9e3c8aa44ae2d2b4396a5fedd18ed7bc633d /misc
parentb7e786291a686c8a9817eb83e3bcf80d813e73e4 (diff)
Better way to set the text/plain content-type header for web archive
Diffstat (limited to 'misc')
-rw-r--r--misc/cron/archive.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/cron/archive.php b/misc/cron/archive.php
index 1485942c89..d06c9cd230 100644
--- a/misc/cron/archive.php
+++ b/misc/cron/archive.php
@@ -28,7 +28,6 @@ if (!empty($_SERVER['argv'][0])) {
require_once PIWIK_INCLUDE_PATH . '/core/Common.php';
-\Piwik\Common::sendHeader('Content-Type: text/plain; charset=utf-8');
if (false !== strpos($callee, 'archive.php')) {
$piwikHome = PIWIK_INCLUDE_PATH;
@@ -60,6 +59,7 @@ if (Piwik\Common::isPhpCliMode()) {
} else { // if running via web request, use CoreAdminHome.runCronArchiving method
$_GET['module'] = 'API';
$_GET['method'] = 'CoreAdminHome.runCronArchiving';
+ $_GET['format'] = 'console'; // will use Content-type text/plain
require_once PIWIK_INCLUDE_PATH . "/index.php";
} \ No newline at end of file