obs_operator: handle multi-level host domains.
This commit is contained in:
parent
d8df047d24
commit
74eb4a3955
@ -135,7 +135,7 @@ class RequestHandler(BaseHTTPRequestHandler):
|
||||
return None
|
||||
|
||||
# Remove first subdomain and replace with api subdomain.
|
||||
domain_parent = '.'.join(domain.split('.')[1:])
|
||||
domain_parent = '.'.join(domain.split('.')[-2:])
|
||||
return 'https://api.{}'.format(domain_parent)
|
||||
|
||||
def origin_domain_get(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user