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:
parent
52747e3afb
commit
4cc2ba25c4
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue