-
Notifications
You must be signed in to change notification settings - Fork 453
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
Option to use "Location:" header value verbatim for redirection #864
Comments
@chanseokoh: Getting the |
I quickly hacked Implenenting this feature may not be terribly difficult, but it may need cascading changes to |
@chanseokoh: I've started working on a pull request (modifying GenericUrl and UrlEncodedParser). |
Wonderful! You can continue on this, thanks a ton. And note that I believe this library has an automatic redirection handling (the user does not have to parse |
Is your feature request related to a problem? Please describe.
There have been problems with interacting Azure Container Registry, OpenShift Container Registry, and Red Hat Quay, where these servers return a redirect location (the
Location:
header value) but they fail to honor a redirect URL if it doesn't match the original URL value char-by-char.(FYI, the ACR issue has been taken care of by setting
setNormalizeUri(false)
on Apache HttpClient. However, Microsoft should fix their servers eventually.)Examples:
Describe the solution you'd like
As described in #795 (comment), an option to take the
Location:
URL value and use it verbatim, without ever modifying any character.Describe alternatives you've considered
Wait for Red Hat to fix their servers, which they said won't likely happen for a very long time.
Additional context
Fixing this may first require enhancing
GenericUrl
to disable encoding and decoding (but I am not sure).The text was updated successfully, but these errors were encountered: