mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 13:11:19 -03:30
host may be None, account for that
This commit is contained in:
parent
05e1348ef9
commit
0b04001b15
@ -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