From 4b0a7c07e3de186d93b2a48b50eee2f9ddcec142 Mon Sep 17 00:00:00 2001 From: Kevin J Hoerr Date: Sat, 8 Jul 2017 14:14:50 -0400 Subject: Declare content-type early --- index.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'index.php') diff --git a/index.php b/index.php index f8ef302..7b48249 100644 --- a/index.php +++ b/index.php @@ -23,6 +23,9 @@ spl_autoload_register( use AugustOffensive\View; use AugustOffensive\Controller; +// configure content type before anything is output +header("Content-Type: application/" + View\Main::TYPE); + try { // initiate connection and build front-end $connection = Controller\Controller::initiateConnection(); -- cgit