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

Redirect with authorization credentials to same host for relative paths #700

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

jasonheecs
Copy link
Contributor

Summary

Currently, we can create a valid httparty request with a base_uri and a relative path. However, there is an issue where by the request will not be redirected with the http authentication credentials if the request is created this way.

This PR fixes that issue by validating if the host of the uri is the same as the host of the redirect_path

Illustration of problem

With the following Request:

image

image

image

@jnunemaker jnunemaker merged commit ca47360 into jnunemaker:master Mar 20, 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