Remove runtime header, properly

This commit is contained in:
Rien Maertens 2018-08-08 14:18:34 +02:00
parent ccc7f9b330
commit c88dcf2b12
No known key found for this signature in database
GPG key ID: 943CAB70C511D23C
2 changed files with 3 additions and 1 deletions

View file

@ -82,5 +82,4 @@ Rails.application.configure do
config.x.host = 'tab.zeus.gent' config.x.host = 'tab.zeus.gent'
config.api_url = "https://tab.zeus.gent/" config.api_url = "https://tab.zeus.gent/"
config.middleware.delete(Rack::Runtime)
end end

View file

@ -0,0 +1,3 @@
if Rails.env.production?
Rails.application.config.middleware.delete(Rack::Runtime)
end