From 391a054e699cebc22b9e14a272383b5a344b042e Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 11 Dec 2021 19:42:34 +0200 Subject: [PATCH] fsdfsd --- files/routes/static.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/files/routes/static.py b/files/routes/static.py index 1dad043fb..d49033681 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -262,11 +262,10 @@ def static_service(path): return resp @app.get('/images/') -@app.get('/IMAGES/') @app.get('/hostedimages/') @limiter.exempt def images(path): - resp = make_response(send_from_directory('images', path.replace('.WEBP','.webp'))) + resp = make_response(send_from_directory('./images', path.replace('.WEBP','.webp'))) resp.headers.remove("Cache-Control") resp.headers.add("Cache-Control", "public, max-age=2628000") if request.path.endswith('.webp'):