public function getHeaders()
    {
        switch ($this->request->ext) {
            case 'jpg':
            case 'jpeg':
                $this->response->headerController->headerField('Content-Type', 'image/jpeg');
                break;
            case 'png':
                $this->response->headerController->headerField('Content-Type', 'image/png');
                break;
            case 'gif':
                $this->response->headerController->headerField('Content-Type', 'image/gif');
                break;
        }
    }
public function getHeaders()
    {
        switch ($this->request->ext) {
            case 'jpg':
            case 'jpeg':
                $this->response->headerController->headerField('Content-Type', 'image/jpeg');
                break;
            case 'png':
                $this->response->headerController->headerField('Content-Type', 'image/png');
                break;
            case 'gif':
                $this->response->headerController->headerField('Content-Type', 'image/gif');
                break;
        }
    }
public function getHeaders ( ) { switch ( $ this -> request -> ext ) { case 'jpg' : case 'jpeg' : $ this -> response -> headerController -> headerField ( 'Content-Type' , 'image/jpeg' ) ; break ; case 'png' : $ this -> response -> headerController -> headerField ( 'Content-Type' , 'image/png' ) ; break ; case 'gif' : $ this -> response -> headerController -> headerField ( 'Content-Type' , 'image/gif' ) ; break ; } }
Set additional headers just for an Image
Set additional headers just for an Image