diff --git a/gunicorn/http/wsgi.py b/gunicorn/http/wsgi.py index 101ef9c2..63ff3d33 100644 --- a/gunicorn/http/wsgi.py +++ b/gunicorn/http/wsgi.py @@ -179,7 +179,7 @@ def create(req, sock, client, server, cfg): server = server.split(":") if len(server) == 1: # unix socket - if host and host is not None: + if host: server = host.split(':') if len(server) == 1: if url_scheme == "http":