From 45ab2a3d7aadba25ee29e0f52dc943d9031c60b9 Mon Sep 17 00:00:00 2001 From: Keith Bentrup <keith@keithbentrup.com> Date: Sat, 9 Dec 2017 17:03:20 -0500 Subject: [PATCH] send HTTP headers before HTML Signed-off-by: Keith Bentrup <keith@keithbentrup.com> --- advanced/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/advanced/index.php b/advanced/index.php index 5c2f250d..999acebb 100644 --- a/advanced/index.php +++ b/advanced/index.php @@ -213,6 +213,8 @@ if (explode("-", $phVersion)[1] != "0") // Please Note: Text is added via CSS to allow an admin to provide a localised // language without the need to edit this file + +setHeader(); ?> <!DOCTYPE html> <!-- Pi-hole: A black hole for Internet advertisements @@ -224,7 +226,6 @@ if (explode("-", $phVersion)[1] != "0") <head> <meta charset="UTF-8"> <?=$viewPort ?> - <?=setHeader() ?> <meta name="robots" content="noindex,nofollow"/> <meta http-equiv="x-dns-prefetch-control" content="off"> <link rel="shortcut icon" href="<?=$proto ?>://pi.hole/admin/img/favicon.png" type="image/x-icon"/>