What is the cleanest way to do this? Some middleware middleware? I tried to change env['SERVER_SOFTWARE'], but I still get in response:
Server: thin 1.3.1 codename Triple Espresso
How to change the value of this header or completely remove it from the response?
EDIT
Another attempt:
before do
headers 'Server' => 'ipm'
end
after do
headers 'Server' => 'ipm'
end
But there were no changes.
source
share