HTTPCLIENT-771: Fixed ConcurrentModificationException in RequestAddCookies protocol interceptor

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@653051 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2008-05-03 11:09:46 +00:00
parent 52747e3afb
commit 4cc2ba25c4
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ public class RequestAddCookies implements HttpRequestInterceptor {
// Get an instance of the selected cookie policy
CookieSpec cookieSpec = registry.getCookieSpec(policy, request.getParams());
// Get all cookies available in the HTTP state
List<Cookie> cookies = cookieStore.getCookies();
List<Cookie> cookies = new ArrayList<Cookie>(cookieStore.getCookies());
// Find cookies matching the given origin
List<Cookie> matchedCookies = new ArrayList<Cookie>();
for (Cookie cookie : cookies) {