-
-
Save progrium/4273354 to your computer and use it in GitHub Desktop.
Heroku app for echoing the query string to the response body
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