# HG changeset patch # User Marcin Kuzminski # Date 2011-01-16 16:51:32 # Node ID f12cd4707301094a93c9f3812c2341076539a9e5 # Parent 05b59c48556f0c8a557f117d971a20a07b24980a patched gravatar url generation to properly support new https force flag from settings. diff --git a/rhodecode/lib/helpers.py b/rhodecode/lib/helpers.py --- a/rhodecode/lib/helpers.py +++ b/rhodecode/lib/helpers.py @@ -495,7 +495,7 @@ import urllib from pylons import request def gravatar_url(email_address, size=30): - ssl_enabled = 'https' == request.environ.get('HTTP_X_URL_SCHEME') + ssl_enabled = 'https' == request.environ.get('wsgi.url_scheme') default = 'identicon' baseurl_nossl = "http://www.gravatar.com/avatar/" baseurl_ssl = "https://secure.gravatar.com/avatar/"