Skip to content

A platform for community discussion. Free, open, simple.

DEV: Remove unused middleware (#9203)

David Taylorfb8b0ca1973e
diff --git a/config/initializers/050-force_https.rb b/config/initializers/050-force_https.rb
deleted file mode 100644
index a3bdb5d3b27..00000000000
--- a/config/initializers/050-force_https.rb
+++ /dev/null
@@ -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