httparty icon indicating copy to clipboard operation
httparty copied to clipboard

Redirect with authorization credentials to same host for relative paths

Open jasonheecs opened this issue 4 years ago • 0 comments

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

jasonheecs avatar May 06 '20 09:05 jasonheecs