webmock
webmock copied to clipboard
Patron adapter does not currently "follow" redirects
Patron, as a wrapper of libcurl, works similarly to Curb where if you set max_redirects on a request, it will follow them automatically, and then return the "last" URL requested as response.url.
WebMock already handles this for Curb, but does not do it for Patron.
@foca thank you for reporting.
In case of Curb, one needs to set follow_location to true. I believe Patron follows redirects by default.
I also noticed that Curb adapter doesn't support max_redirects setting.