Skip to content

Commit

Permalink
explicitly set Content-Type header to text/html
Browse files Browse the repository at this point in the history
Closes #128
  • Loading branch information
pommi committed Jan 5, 2016
1 parent cf12c83 commit af0adbb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions detail.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
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'];
Expand Down
2 changes: 2 additions & 0 deletions host.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
require_once 'inc/html.inc.php';
require_once 'inc/collectd.inc.php';

header("Content-Type: text/html");

$host = GET('h');
$plugin = GET('p');

Expand Down
2 changes: 2 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
include_once 'inc/collectd.inc.php';
require_once 'inc/html.inc.php';

header("Content-Type: text/html");

html_start();

$h = array();
Expand Down

0 comments on commit af0adbb

Please sign in to comment.