mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 03:02:46 +08:00
DEV: Remove unused middleware (#9203)
This has not been used since January 2014, per 166a8d29
This commit is contained in:
parent
5e4cf244a5
commit
fb8b0ca197
|
@ -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
|
Loading…
Reference in New Issue
Block a user