Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 603 Bytes

File metadata and controls

29 lines (17 loc) · 603 Bytes

EasterHeaders

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.

Usage

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:

image

As usual with initializers, if you change any of the header values, you'll need to restart the server.