DefaultRedirectHandler does not access correct HttpParams
---------------------------------------------------------

                 Key: HTTPCLIENT-687
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-687
             Project: HttpComponents HttpClient
          Issue Type: Bug
          Components: HttpClient
    Affects Versions: 4.0 Alpha 1
            Reporter: Quintin May
            Priority: Critical


In the getLocationURI(HttpResponse, HttpContext) method, the HttpParams for 
determining REJECT_RELATIVE_REDIRECT and ALLOW_CIRCULAR_REDIRECTS are retrieved 
with:

HttpParams params = response.getParams();

The response HttpParams do not contain these values, however the request 
HttpParams do. The correct implementation is:

HttpRequest request = (HttpRequest) 
context.getAttribute(HttpExecutionContext.HTTP_REQUEST);
HttpParams params = request.getParams();



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to