I’ve developed a web application in Ruby (using Sinatra framework if that matters).
It adds a Server header to every HTTP response:
Server: WEBrick/1.3.1 (Ruby/1.9.3/2011-09-23)
How do I disable it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m not sure that you can delete
Serverheader at all without hacking the guts. I think that more simple is delete all content of this header such way:If you want to prepare this manipulation for each action, you can use
beforefilter: