Solved the 'Headers already sent' issue with the custom PugMoRe_Mageploy_Controller_Response_Http class'