Created
December 13, 2012 01:44
-
-
Save anonymous/4273344 to your computer and use it in GitHub Desktop.
Query string echo service
This file contains hidden or 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
run lambda { |env| [200, {'Content-Type'=>'text/plain'}, StringIO.new(URI.unescape(env['QUERY_STRING']).gsub('+', ' '))] } |
This file contains hidden or 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
source 'http://rubygems.org' | |
gem 'rack' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment