mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-02-09 19:45:48 +00:00
Rewrite the redirect URI only if it contains a fragment part
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@650988 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
56baf77bb2
commit
e487e799c2
@ -155,7 +155,7 @@ public URI getLocationURI(
|
||||
}
|
||||
|
||||
URI redirectURI;
|
||||
if (uri.getQuery() != null || uri.getFragment() != null) {
|
||||
if (uri.getFragment() != null) {
|
||||
try {
|
||||
HttpHost target = new HttpHost(
|
||||
uri.getHost(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user