Created
May 21, 2012 17:25
-
-
Save sevennineteen/2763408 to your computer and use it in GitHub Desktop.
Show HTTP request headers (Rack)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' | |
get '/' do | |
@headers = env.reject {|k, v| k =~ /async*|rack*/}.sort.each | |
haml :index | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment