Update 'src/containerspawner/__init__.py'
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
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…
Reference in New Issue