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

This commit is contained in:
Jack Hadrill 2022-08-27 19:41:04 +00:00
parent 3fbf8cd97c
commit fecf8f1ab3
1 changed files with 2 additions and 2 deletions

View File

@ -19,6 +19,6 @@ def default(path):
if not state.is_running(username):
state.spawn(username)
response = make_response(f"Container spawned. Reloading `{path}`...", 201)
response.headers["Refresh"] = "5"
response = make_response(f"Container spawned. Reloading{'' if path else ' ' + path}...", 201)
response.headers["Refresh"] = "2"
return response