Created
March 22, 2011 23:31
-
-
Save jordansissel/882330 to your computer and use it in GitHub Desktop.
sinatra bug? expectation mismatch?
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
Code (async sinatra + rack) | |
... | |
aget "/api/v1/inputs/:id" do |*args| | |
# get a particular input | |
@logger.info args | |
@logger.info params | |
end # aget "/api/v1/inputs/:id" | |
Output (Sinatra 1.0) - AND CORRECT ACCORDING TO MY EXPECTATIONS | |
I, [2011-03-22T16:28:23.282940 #13097] INFO -- : ["1234"] | |
I, [2011-03-22T16:28:23.283132 #13097] INFO -- : {"id"=>"1234"} | |
Output (Sinatra 1.1) | |
I, [2011-03-22T16:28:14.096929 #13086] INFO -- : ["1234"] | |
I, [2011-03-22T16:28:14.097048 #13086] INFO -- : {} | |
Output (Sinatra 1.2) | |
I, [2011-03-22T16:30:28.462613 #13227] INFO -- : ["1234"] | |
I, [2011-03-22T16:30:28.462778 #13227] INFO -- : {} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment