Mercurial > kallithea
changeset 946:f12cd4707301 beta
patched gravatar url generation to properly support new https force flag from settings.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 16 Jan 2011 16:51:32 +0100 |
parents | 05b59c48556f |
children | 99850ac883d1 |
files | rhodecode/lib/helpers.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/lib/helpers.py Sun Jan 16 12:27:44 2011 +0100 +++ b/rhodecode/lib/helpers.py Sun Jan 16 16:51:32 2011 +0100 @@ -495,7 +495,7 @@ 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/"