Revert "REVERT: message bus changes"

This reverts commit 4820d5c7b0.
This commit is contained in:
Sam
2015-12-09 07:36:36 +11:00
parent 4820d5c7b0
commit 2cc95af69b
38 changed files with 95 additions and 84 deletions
+14
View File
@@ -0,0 +1,14 @@
# tiny middleware to force https if needed
class Discourse::ForceHttpsMiddleware
def initialize(app, config={})
@app = app
end
def call(env)
env['rack.url_scheme'] = 'https' if SiteSetting.use_https
@app.call(env)
end
end