From e7a4fb5e6ad055278235ffeb27ab49c2a58c6e9c Mon Sep 17 00:00:00 2001 From: Khanh Ngo Date: Thu, 14 Jul 2016 00:05:55 +0700 Subject: [PATCH] Force loading gravatar over https --- app/lib/utils.py | 3 +-- app/views.py | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/app/lib/utils.py b/app/lib/utils.py index d86e8ec..45799c2 100644 --- a/app/lib/utils.py +++ b/app/lib/utils.py @@ -150,5 +150,4 @@ def pdns_api_extended_uri(version): def email_to_gravatar_url(email, size=100): hash_string = hashlib.md5(email).hexdigest() - schema = 'https' if app.config['SSL'] else 'http' - return "%s://s.gravatar.com/avatar/%s?s=%s" % (schema, hash_string, size) + return "https://s.gravatar.com/avatar/%s?s=%s" % (hash_string, size) diff --git a/app/views.py b/app/views.py index c938f8c..75eb3b4 100644 --- a/app/views.py +++ b/app/views.py @@ -69,9 +69,6 @@ def before_request(): g.user = current_user login_manager.anonymous_user = Anonymous - # set website SSL status - app.config['SSL'] = True if request.is_secure else False - @login_manager.user_loader def load_user(id):