httparty
httparty copied to clipboard
Redirect with authorization credentials to same host for relative paths
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
: