Object localObject1;
Object localObject2;
if ((HttpClientParams.isRedirecting(localHttpParams)) && (this.redirectStrategy.isRedirected(localRequestWrapper, paramHttpResponse, paramHttpContext)))
{
if (this.redirectCount >= this.maxRedirects)
throw new RedirectException("Maximum redirects (" + this.maxRedirects + ") exceeded");
this.redirectCount += 1;
this.virtualHost = null;
localObject1 = this.redirectStrategy.getRedirect(localRequestWrapper, paramHttpResponse, paramHttpContext);
localObject2 = localRequestWrapper.getOriginal();
((HttpUriRequest)localObject1).setHeaders(((HttpRequest)localObject2).getAllHeaders());