Add easter-egg HTTP headers to your Rails app with ease!
This gem allows you to add a (potentially harmless :)) HTTP header to every response, as an easter egg.
First, add the gem to you Gemfile
:
gem "easter_headers"
Then, create an initializer (config/initializers/easter_headers.rb
, for example), and initialize the values you want there:
EasterHeaders::init('X-Valar', 'Morghulis')
You're done:
As usual with initializers, if you change any of the header values, you'll need to restart the server.