From af0adbbdfa262c3782de4d7f57e87fb7705f9397 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Tue, 5 Jan 2016 21:36:01 +0100 Subject: explicitly set Content-Type header to text/html Closes #128 --- detail.php | 2 ++ host.php | 2 ++ index.php | 2 ++ 3 files changed, 6 insertions(+) diff --git a/detail.php b/detail.php index 3cd7155..875074b 100644 --- a/detail.php +++ b/detail.php @@ -5,6 +5,8 @@ require_once 'inc/functions.inc.php'; require_once 'inc/html.inc.php'; require_once 'inc/collectd.inc.php'; +header("Content-Type: text/html"); + # use width/height from config if nothing is given if (empty($_GET['x'])) $_GET['x'] = $CONFIG['detail-width']; diff --git a/host.php b/host.php index 91e37f0..8c2f0a7 100644 --- a/host.php +++ b/host.php @@ -4,6 +4,8 @@ require_once 'conf/common.inc.php'; require_once 'inc/html.inc.php'; require_once 'inc/collectd.inc.php'; +header("Content-Type: text/html"); + $host = GET('h'); $plugin = GET('p'); diff --git a/index.php b/index.php index 94ecf80..b220241 100644 --- a/index.php +++ b/index.php @@ -4,6 +4,8 @@ include_once 'conf/common.inc.php'; include_once 'inc/collectd.inc.php'; require_once 'inc/html.inc.php'; +header("Content-Type: text/html"); + html_start(); $h = array(); -- cgit v1.1