protected function setProtocol($statuscode)
    {
    	if ($_SERVER['SERVER_PROTOCOL'] == 'HTTP/1.1' || $statuscode == Response::SC_CONTINUE || $statuscode == Response::SC_SWITCHING_PROTOCOLS || $statuscode == Response::SC_TEMPORARY_REDIRECT) {
        	header('HTTP/1.1 ' . $statuscode);
        } elseif (empty($_SERVER['SERVER_PROTOCOL'])) {
    		header('HTTP/1.0 ' . $statuscode);
    	} else {
    		header($_SERVER['SERVER_PROTOCOL'] . ' ' . $statuscode);
    	}
    }