mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Set SERVER_PORT correctly when not specified.
This commit is contained in:
parent
ae721f00d0
commit
063bd357f3
@ -71,7 +71,12 @@ def create(req, sock, client, server, cfg):
|
||||
if isinstance(server, basestring):
|
||||
server = server.split(":")
|
||||
if len(server) == 1:
|
||||
server.append('')
|
||||
if url_scheme == "http":
|
||||
server.append("80")
|
||||
elif url_scheme == "https":
|
||||
server.append("443")
|
||||
else:
|
||||
server.append('')
|
||||
|
||||
path_info = req.path
|
||||
if script_name:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user