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

allow "Location" header #14

Closed
wants to merge 1 commit into from
Closed

allow "Location" header #14

wants to merge 1 commit into from

Conversation

n01e0
Copy link

@n01e0 n01e0 commented May 23, 2024

While using this Gem, I encountered an issue where it inexplicably did not follow redirects properly.
After investigating the cause, I found that the web server uses the "Location" header.
According to RFC7231, it is written as Location, and I believe we should support this as well, so I created a pull request.

@tisba
Copy link
Owner

tisba commented May 24, 2024

HTTP headers are case-insensitive (RFC9110 Sec 5.1 Field Names).

I was under the assumption that Faraday already does header name normalisation, but maybe that's not the case, or there is something else to do on this end 🤔 Need to do some digging and testing, thanks for reporting 🙇

@n01e0
Copy link
Author

n01e0 commented May 27, 2024

It's my fault.

@n01e0 n01e0 closed this May 27, 2024
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

Successfully merging this pull request may close these issues.

None yet

2 participants