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 class DefaultRedirectHandler implements RedirectHandler {
|
|||
}
|
||||
|
||||
URI redirectURI;
|
||||
if (uri.getQuery() != null || uri.getFragment() != null) {
|
||||
if (uri.getFragment() != null) {
|
||||
try {
|
||||
HttpHost target = new HttpHost(
|
||||
uri.getHost(),
|
||||
|
|
Loading…
Reference in New Issue