fixed issue where response.body was a Net::ReadAdapter instead of a string