From 34533d1616123458bbd1c9fba4d1856cb7e4264d Mon Sep 17 00:00:00 2001 From: M Clark Date: Fri, 8 Jan 2016 12:34:07 +0800 Subject: [PATCH] Set default for STORAGE_SERVER to True Set default for STORAGE_SERVER to True to bring it in line with readme. --- flask_cloudy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flask_cloudy.py b/flask_cloudy.py index 8c0acfb..21216a4 100644 --- a/flask_cloudy.py +++ b/flask_cloudy.py @@ -202,7 +202,7 @@ class Storage(object): secret = app.config.get("STORAGE_SECRET", None) container = app.config.get("STORAGE_CONTAINER", None) allowed_extensions = app.config.get("STORAGE_ALLOWED_EXTENSIONS", None) - serve_files = app.config.get("STORAGE_SERVER", False) + serve_files = app.config.get("STORAGE_SERVER", True) serve_files_url = app.config.get("STORAGE_SERVER_URL", "files") self.config["serve_files"] = serve_files @@ -575,4 +575,4 @@ class Object(object): :return: """ warnings.warn("DEPRECATED: flask_cloudy.Object.short_url has been deprecated, use flask_cloudy.Object.url or flask_cloudy.Object.full_url") - return self.get_url() \ No newline at end of file + return self.get_url()