Skip to content

Instantly share code, notes, and snippets.

Created December 13, 2012 01:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/4273344 to your computer and use it in GitHub Desktop.
Save anonymous/4273344 to your computer and use it in GitHub Desktop.
Query string echo service
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