mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-02-09 11:35:30 +00:00
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 void process(final HttpRequest request, final HttpContext context)
|
|||||||
// Get an instance of the selected cookie policy
|
// Get an instance of the selected cookie policy
|
||||||
CookieSpec cookieSpec = registry.getCookieSpec(policy, request.getParams());
|
CookieSpec cookieSpec = registry.getCookieSpec(policy, request.getParams());
|
||||||
// Get all cookies available in the HTTP state
|
// 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
|
// Find cookies matching the given origin
|
||||||
List<Cookie> matchedCookies = new ArrayList<Cookie>();
|
List<Cookie> matchedCookies = new ArrayList<Cookie>();
|
||||||
for (Cookie cookie : cookies) {
|
for (Cookie cookie : cookies) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user