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:
Oleg Kalnichevski 2008-04-23 18:29:05 +00:00
parent 56baf77bb2
commit e487e799c2
1 changed files with 1 additions and 1 deletions

View File

@ -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(),