fix: rename variable

This commit is contained in:
Yannik Schmidt
2023-01-04 04:53:22 +01:00
parent c106b6667f
commit 1f2a0b01a1

View File

@@ -315,7 +315,7 @@ def sendPicture(path):
scaleX = round(float(scaleX))
path = generatePicture(path, scaleX, scaleY, flask.request.args.get("encoding"))
raw = flask.send_from_directory(app.config["PICTURES_DIR"], path, max_age=cache_timeout)
raw = flask.send_from_directory(app.config["PICTURES_DIR"], path, max_age=max_age)
response = flask.make_response(raw)
response.headers['X-ATHQ-INTERNAL-FID'] = path