Remove runtime header, properly
This commit is contained in:
parent
ccc7f9b330
commit
c88dcf2b12
2 changed files with 3 additions and 1 deletions
|
@ -82,5 +82,4 @@ Rails.application.configure do
|
|||
config.x.host = 'tab.zeus.gent'
|
||||
config.api_url = "https://tab.zeus.gent/"
|
||||
|
||||
config.middleware.delete(Rack::Runtime)
|
||||
end
|
||||
|
|
3
config/initializers/remove_runtime_header.rb
Normal file
3
config/initializers/remove_runtime_header.rb
Normal file
|
@ -0,0 +1,3 @@
|
|||
if Rails.env.production?
|
||||
Rails.application.config.middleware.delete(Rack::Runtime)
|
||||
end
|
Loading…
Reference in a new issue