use 302 redirect
This commit is contained in:
parent
e8e69d76a8
commit
504a5a979f
3
app.py
3
app.py
|
@ -35,6 +35,7 @@ def convert_to_wav(file_name: str):
|
|||
|
||||
|
||||
def run_cassetta(cassetta: str):
|
||||
print("running cassetta")
|
||||
command = [
|
||||
"aplay",
|
||||
os.path.join("uploads", cassetta),
|
||||
|
@ -101,7 +102,7 @@ def run(cassetta: str):
|
|||
thread = Thread(target=run_cassetta, args=(cassetta,))
|
||||
thread.start()
|
||||
|
||||
response = make_response(make_response("", 301))
|
||||
response = make_response(make_response("", 302))
|
||||
response.headers["Location"] = "/"
|
||||
|
||||
return response
|
||||
|
|
Loading…
Reference in New Issue
Block a user