the middleware stack is just an array and insert_before just an alias to insert, basically, guess what inset(0, something) does. AKA finally fix Rack:SSL
This commit is contained in:
parent
98bdf68003
commit
1d8dbdd8d8
1 changed files with 1 additions and 1 deletions
|
|
@ -3,6 +3,6 @@
|
||||||
# the COPYRIGHT file.
|
# the COPYRIGHT file.
|
||||||
|
|
||||||
if EnviromentConfiguration.enforce_ssl?
|
if EnviromentConfiguration.enforce_ssl?
|
||||||
Rails.application.config.middleware.insert_before ActionDispatch::Cookies, Rack::SSL
|
Rails.application.config.middleware.insert_before 0, Rack::SSL
|
||||||
puts "Rack::SSL is enabled"
|
puts "Rack::SSL is enabled"
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue