HTTPCLIENT-1193: Fixed regression in the route tracking logic of the default connection manager causing cross-site redirect failures.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1342677 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
570aa9fa37
commit
0da3e7251e
|
@ -1,3 +1,10 @@
|
||||||
|
Changes since 4.2
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
* [HTTPCLIENT-1193] Fixed regression in the route tracking logic of the default connection manager
|
||||||
|
causing cross-site redirect failures.
|
||||||
|
Contributed by Oleg Kalnichevski <olegk at apache.org>
|
||||||
|
|
||||||
Release 4.2
|
Release 4.2
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
|
|
|
@ -162,7 +162,7 @@ public class BasicClientConnectionManager implements ClientConnectionManager {
|
||||||
}
|
}
|
||||||
if (this.poolEntry != null && !this.poolEntry.getPlannedRoute().equals(route)) {
|
if (this.poolEntry != null && !this.poolEntry.getPlannedRoute().equals(route)) {
|
||||||
this.poolEntry.close();
|
this.poolEntry.close();
|
||||||
this.poolEntry.getTracker().reset();
|
this.poolEntry = null;
|
||||||
}
|
}
|
||||||
if (this.poolEntry == null) {
|
if (this.poolEntry == null) {
|
||||||
String id = Long.toString(COUNTER.getAndIncrement());
|
String id = Long.toString(COUNTER.getAndIncrement());
|
||||||
|
|
Loading…
Reference in New Issue