pengwynn/faraday_middleware — pull request #25 by nbibler (2012-03-05 18:16:19+00:00)
Title: Add a standards_compliant option to properly handle HTTP 302

The current implementation restricts the redirection handling on HTTP 302 to act improperly, by following the precedent which has been set by most major web browsers and forcing the redirected request to become a GET request. I've added some additional specs and a configuration option (`standards_compliant`) which will, instead, treat HTTP 302 similarly to a 307, and replay the original request to the new location.