This commit is contained in:
Micke Nordin 2024-01-16 16:01:14 +01:00
parent 03788c1eb0
commit bd55a67e49
Signed by untrusted user: Micke
GPG key ID: F53C4CC83EDAB3BE

View file

@ -173,9 +173,8 @@ hub:
class RefreshHandler(HubAuthenticated, RequestHandler): class RefreshHandler(HubAuthenticated, RequestHandler):
@authenticated # @authenticated
def get(self): def get(self):
print(os.environ)
user_model = self.get_current_user() user_model = self.get_current_user()
self.set_header('content-type', 'application/json') self.set_header('content-type', 'application/json')
self.write(json.dumps(user_model, indent=1, sort_keys=True)) self.write(json.dumps(user_model, indent=1, sort_keys=True))
@ -191,7 +190,6 @@ hub:
) )
http_server = HTTPServer(app) http_server = HTTPServer(app)
print(os.environ)
url = urlparse(os.environ['JUPYTERHUB_SERVICE_URL']) url = urlparse(os.environ['JUPYTERHUB_SERVICE_URL'])
http_server.listen(url.port, reuse_port=True) http_server.listen(url.port, reuse_port=True)