This commit is contained in:
Aevann1 2021-12-13 02:57:25 +02:00
parent ae440568a3
commit 46acbc272e
3 changed files with 11 additions and 11 deletions

View file

@ -307,7 +307,7 @@ def songs(id):
@app.get("/song/<song>")
def song(song):
resp = make_response(send_from_directory('songs/', song))
resp = make_response(send_from_directory('/songs/', song))
resp.headers.remove("Cache-Control")
resp.headers.add("Cache-Control", "public, max-age=2628000")
return resp