mirror of
https://github.com/FAUSheppy/python-flask-picture-factory
synced 2025-12-06 15:11:36 +01:00
fix namespace
This commit is contained in:
@@ -99,9 +99,9 @@ def sendPicture(path):
|
|||||||
response.headers['X-ATHQ-INTERNAL-FID'] = path
|
response.headers['X-ATHQ-INTERNAL-FID'] = path
|
||||||
|
|
||||||
# check for a cacheTimeout #
|
# check for a cacheTimeout #
|
||||||
cacheTimeout = request.args.get("cache-timeout")
|
cacheTimeout = flask.request.args.get("cache-timeout")
|
||||||
if not cacheTimeout:
|
if not cacheTimeout:
|
||||||
cacheTimeout = request.args.get("ct")
|
cacheTimeout = flask.request.args.get("ct")
|
||||||
if cacheTimeout:
|
if cacheTimeout:
|
||||||
response.headers['Cache-Control'] = "max-age=" + str(cacheTimeout)
|
response.headers['Cache-Control'] = "max-age=" + str(cacheTimeout)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user