fix namespace

This commit is contained in:
Yannik Schmidt
2021-07-06 14:34:33 +02:00
parent e90f36a742
commit 8187625b52

View File

@@ -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)