mirror of
https://github.com/FAUSheppy/flask-json-dream-website
synced 2025-12-06 00:01:36 +01:00
fix: rename variable
This commit is contained in:
@@ -315,7 +315,7 @@ def sendPicture(path):
|
|||||||
scaleX = round(float(scaleX))
|
scaleX = round(float(scaleX))
|
||||||
path = generatePicture(path, scaleX, scaleY, flask.request.args.get("encoding"))
|
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 = flask.make_response(raw)
|
||||||
response.headers['X-ATHQ-INTERNAL-FID'] = path
|
response.headers['X-ATHQ-INTERNAL-FID'] = path
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user