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:
Oleg Kalnichevski 2012-05-25 15:13:43 +00:00
parent 570aa9fa37
commit 0da3e7251e
2 changed files with 8 additions and 1 deletions

View File

@ -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
------------------- -------------------

View File

@ -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());