Fixed NPE in DefaultRequestDirector thrown when retrying a failed request over a proxied connection
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@723813 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9570849f9c
commit
c6769986be
|
@ -9,6 +9,10 @@ bundle combining HttpClient and HttpMime jars.
|
|||
|
||||
All upstream projects are strongly encouraged to upgrade.
|
||||
|
||||
* Fixed NPE in DefaultRequestDirector thrown when retrying a failed
|
||||
request over a proxied connection.
|
||||
Contributed by Oleg Kalnichevski <olegk at apache.org>
|
||||
|
||||
* [HTTPCLIENT-803] Fixed bug in SSL host verifier implementations
|
||||
causing the SSL certificate to be rejected as invalid if the connection
|
||||
is established using an IP address.
|
||||
|
|
|
@ -434,12 +434,18 @@ public class DefaultRequestDirector implements RequestDirector {
|
|||
managedConn.open(route, context, params);
|
||||
} else {
|
||||
// otherwise give up
|
||||
this.log.debug("Proxied connection. Need to start over.");
|
||||
retrying = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (response == null) {
|
||||
// Need to start over
|
||||
continue;
|
||||
}
|
||||
|
||||
// Run response protocol interceptors
|
||||
response.setParams(params);
|
||||
|
|
Loading…
Reference in New Issue