technoweenie/faraday — pull request #128 by joe1chen (2012-03-28 18:46:28+00:00)
Title: Fix bug in typhoeus adapter that causes post with body as a hash to fail.

Basically I just added a check to see if the post body is a hash, then use URI.encode_www_form to convert it into a string before passing the body into Typhoeus.

I added 2 test cases to demonstrate that the bug is fixed. The first just demonstrates that the default adapter works with the hash body. The second demonstrates that the Typhoeus adapter succeeds after the fix.