From ef018428e278ebe5f699fb676c2ca48f7974a808 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 3 Oct 2021 21:10:44 +0200 Subject: [PATCH] dfssf --- .gitignore | 1 - files/routes/static.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 12edea75b..a0f7330b9 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,6 @@ __pycache__/ *$py.class chart.png video.mp4 -hostedimages/ # C extensions *.so diff --git a/files/routes/static.py b/files/routes/static.py index a6b8c0ba6..291280a67 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -254,7 +254,7 @@ def static_service(path): @app.get('/hostedimages/') @limiter.exempt def images(path): - resp = make_response(send_from_directory('./images', path)) + resp = make_response(send_from_directory('/hostedimages', path)) resp.headers.remove("Cache-Control") resp.headers.add("Cache-Control", "public, max-age=2628000") return resp