Yes, that indeed looks wrong to me.

Johannes Koch wrote:
In method getLocationURI(HttpResponse, HttpContext) of org.apache.http.impl.client.DefaultRedirectHandler:

if (uri.getQuery() != null || uri.getFragment() != null) {
    try {
        redirectURI = new URI(
                uri.getScheme(),
                null,
                uri.getHost(),
                uri.getPort(),
                uri.getPath(),
                null,
                null);
    } catch (URISyntaxException ex) {
        throw new ProtocolException(ex.getMessage(), ex);
    }
}

Why is the new URI created without the query component?

A redirect from http://example.org/foo?bar to A redirect from http://example.org/foo?blah would so result in a CircularRedirectException.


--
[web]  http://www.odi.ch/
[blog] http://www.odi.ch/weblog/
[pgp]  key 0x81CF3416
       finger print F2B1 B21F F056 D53E 5D79 A5AF 02BE 70F5 81CF 3416

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

Reply via email to