From c07be84a57cbf9f60c63590bb7c243a69253e924 Mon Sep 17 00:00:00 2001 From: Hannes Ljungberg Date: Tue, 11 Jun 2013 01:41:11 +0200 Subject: [PATCH] Check for S3_USE_CACHE_CONTROL boolean --- flask_s3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask_s3.py b/flask_s3.py index 5d41436..bbb8284 100644 --- a/flask_s3.py +++ b/flask_s3.py @@ -226,6 +226,6 @@ class FlaskS3(object): if app.config['USE_S3']: app.jinja_env.globals['url_for'] = url_for - if 'S3_USE_CACHE_CONTROL' and 'S3_CACHE_CONTROL' in app.config: + if app.config['S3_USE_CACHE_CONTROL'] and 'S3_CACHE_CONTROL' in app.config: cache_control_header = app.config['S3_CACHE_CONTROL'] app.config['S3_HEADERS']['Cache-Control'] = cache_control_header