2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

Rename SiteSetting#use_https to force_https.

This commit is contained in:
Guo Xiang Tan 2016-06-27 17:26:43 +08:00
parent 83b08b87d5
commit 20359788dc
No known key found for this signature in database
GPG key ID: 19C321C8952B0F72
16 changed files with 75 additions and 18 deletions

View file

@ -120,7 +120,7 @@ class UserAvatarsController < ApplicationController
def proxy_avatar(url)
if url[0..1] == "//"
url = (SiteSetting.use_https ? "https:" : "http:") + url
url = (SiteSetting.force_https ? "https:" : "http:") + url
end
sha = Digest::SHA1.hexdigest(url)