travis-ci/gh — pull request #13 by henrikhodne (2014-01-17 16:52:48+00:00)
Title: fix(response): handle nil or empty string bodies first

The fix in 05a917e1239b27be748b9d61d516ac2069d638e1 didn't work because the `respond_to(:to_str)` case is triggered by the empty string, so we never get to this case. Moving it up the chain seems to fix it.

Sorry for the fix-fix. The previous fix I tested with an old Faraday version, but this one I made sure to test with 0.9.0 and it solves the problem. Not sure if moving this case up causes other issues, but it didn't make any tests fail.