scottwater/unwind — Issue #1: Integrate with mislav's follow_redirects
Author: nbibler
Created: 2012-02-20 20:44:12+00:00
State: open

It seems like a lot of the "complexity" of this library could be reduced if you just tied into mislav's faraday-stack library and used his [follow_redirects middleware](https://github.com/mislav/faraday-stack/blob/master/lib/faraday_stack/follow_redirects.rb). Or, even just cloned parts of it over here, with modification for 307's.

Since you're already using Faraday, it'd be trivial to use the redirection-handling middleware and you'd simply need to catch the 404 and too many redirection exceptions, rather than do all the Location lookups and requests.