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