Skip to content

Instantly share code, notes, and snippets.

Created January 22, 2016 05:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/bb7d72b0ccc9cf430897 to your computer and use it in GitHub Desktop.
Save anonymous/bb7d72b0ccc9cf430897 to your computer and use it in GitHub Desktop.
#This works
get "/get/env" do
content_type :text
return request.env.to_s
end
#This does not
get "/get/body" do
content_type :text
return request.body.to_s
end
#<StringIO:0x00000001c14b10>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment