Added check for empty HTTP_HOST (CLI)