New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove powered-by header #439

Closed
dkimot opened this Issue Mar 19, 2018 · 3 comments

Comments

Projects
None yet
3 participants
@dkimot
Copy link

dkimot commented Mar 19, 2018

I want to remove the X-Powered-By header, is there an easy or quick way to do that?

@sdogruyol

This comment has been minimized.

Copy link
Member

sdogruyol commented Mar 19, 2018

@dkimot one of the easiest way might be

before_all do |env|
  env.response.headers.delete "X-Powered-By"
end

@sdogruyol sdogruyol added the question label Mar 19, 2018

@dkimot

This comment has been minimized.

Copy link

dkimot commented Mar 19, 2018

That's perfect, thank you

@sdogruyol sdogruyol closed this Mar 19, 2018

@RX14

This comment has been minimized.

Copy link

RX14 commented Mar 19, 2018

There should be a configuration option never to add it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment