Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patron adapter does not currently "follow" redirects #1071

Open
foca opened this issue Oct 3, 2024 · 1 comment
Open

Patron adapter does not currently "follow" redirects #1071

foca opened this issue Oct 3, 2024 · 1 comment

Comments

@foca
Copy link

foca commented Oct 3, 2024

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.

@bblimke
Copy link
Owner

bblimke commented Oct 3, 2024

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants