Created
June 29, 2012 18:48
-
-
Save tarolandia/3019928 to your computer and use it in GitHub Desktop.
Sinatra app
This file contains 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
#GET http://0.0.0.0:4567/thumb/https%3a%2f%2ftwimg0-a.akamaihd.net%2fprofile_images%2f1615677010%2f34214a75-4b21-46ae-89b4-2e44e356dc92_normal.png | |
#Sinatra doesn’t know this ditty. | |
#Try this: | |
#get '/thumb/https%3a/twimg0-a.akamaihd.net/profile_images/1615677010/34214a75-4b21-46ae-89b4-2e44e356dc92_normal.png' #do | |
# "Hello World" | |
#end | |
require 'sinatra' | |
get '/thumb/:link' do | |
link = params[:link] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment