Skip to content

Instantly share code, notes, and snippets.

@progrium
Forked from anonymous/Gemfile
Created December 13, 2012 01:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save progrium/4273354 to your computer and use it in GitHub Desktop.
Save progrium/4273354 to your computer and use it in GitHub Desktop.
Heroku app for echoing the query string to the response body
run lambda { |env| [200, {'Content-Type'=>'text/plain'}, StringIO.new(URI.unescape(env['QUERY_STRING']).gsub('+', ' '))] }
source 'http://rubygems.org'
gem 'rack'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment