protected function applyHeaders()
    {
        if ($this->getConfig('Content-type') != "text/html") {
            header('Content-type: ' . $this->getConfig('Content-type'));
        }

        if (!is_null($this->getConfig('Content-disposition'))) {
            header('Content-disposition: ' . $this->getConfig('Content-disposition'));
        }
    }