mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-12 20:43:02 +00:00
Set http[s] as appropriate for the singleuser url
This commit is contained in:
@@ -422,7 +422,8 @@ class User:
|
||||
pass
|
||||
else:
|
||||
# >= 0.7 returns (ip, port)
|
||||
url = 'http://%s:%i' % url
|
||||
proto = 'https' if self.settings['internal_ssl'] else 'http'
|
||||
url = '%s://%s:%i' % ((proto,) + url)
|
||||
urlinfo = urlparse(url)
|
||||
server.proto = urlinfo.scheme
|
||||
server.ip = urlinfo.hostname
|
||||
|
Reference in New Issue
Block a user