DEV: Remove unused middleware (#9203)

This has not been used since January 2014, per 166a8d29
This commit is contained in:
David Taylor 2020-03-16 12:37:43 +00:00 committed by GitHub
parent 5e4cf244a5
commit fb8b0ca197
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,15 +0,0 @@
# frozen_string_literal: true
# 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.force_https
@app.call(env)
end
end