Skip to content

Instantly share code, notes, and snippets.

@bmizerany
Created September 2, 2009 20:24
Show Gist options
  • Save bmizerany/179935 to your computer and use it in GitHub Desktop.
Save bmizerany/179935 to your computer and use it in GitHub Desktop.
require 'sinatra'
get '/' do
request.env.inject([]) do |m,(k,v)|
next if !key.match(/^HTTP_/)
m << "#{k} = #{v}"
end.join("<br/>")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment