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
16 changed files with 75 additions and 18 deletions

View File

@@ -6,7 +6,7 @@ class Discourse::ForceHttpsMiddleware
end
def call(env)
env['rack.url_scheme'] = 'https' if SiteSetting.use_https
env['rack.url_scheme'] = 'https' if SiteSetting.force_https
@app.call(env)
end