mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 19:10:07 -03:30
host may be None, account for that
This commit is contained in:
parent
fe3d79b5ec
commit
2f604f30d9
@ -88,7 +88,7 @@ class BaseHTTPSHandler(logging.Handler):
|
||||
self.session.headers.update(headers)
|
||||
|
||||
def get_http_host(self):
|
||||
host = self.host
|
||||
host = self.host or ''
|
||||
if not host.startswith('http'):
|
||||
host = 'http://%s' % self.host
|
||||
if self.port != 80 and self.port is not None:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user