Update 'src/containerspawner/__init__.py'
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Jack Hadrill 2022-08-27 19:29:35 +00:00
parent 5bf920255f
commit 30c166e77b
1 changed files with 1 additions and 1 deletions

View File

@ -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)