Update 'src/containerspawner/__init__.py'
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
5bf920255f
commit
30c166e77b
@ -12,7 +12,7 @@ state = StateManager()
|
||||
@app.route("/<path:path>", methods=HTTP_METHODS)
|
||||
def default(path):
|
||||
"""Catch all endpoint to spawn Docker containers."""
|
||||
username = request.headers.get("X-Forwarded-Preferred-User")
|
||||
username = request.headers.get("X-Forwarded-Preferred-Username")
|
||||
if not username:
|
||||
return make_response("No username provided by upstream.", 400)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user