technoweenie/faraday — pull request #183 by fosrias (2012-08-05 20:49:43+00:00)
Title: Bug fixes associated with Faraday::Request#create

Bug fixes:

1. Setting a req.url in a block with query parameters currently fails because params is nil in #url and if there are query parameters in the url, it tries to set them on the nil parameter. Updated #create to initialize params.

2. If no options are set, then they are nil and the env[:request] is also nil. This causes any code trying to check for a value on the env[:request] to raise an error. Solved by returning empty has if options are nil.