diff --git a/src/http_ana.c b/src/http_ana.c index 715dd3a5c..c2d9d9b43 100644 --- a/src/http_ana.c +++ b/src/http_ana.c @@ -3418,7 +3418,7 @@ static void http_manage_server_side_cookies(struct stream *s, struct channel *re while (1) { int is_first = 1; - if (!http_find_header(htx, ist("Set-Cookie"), &ctx, 1)) { + if (is_cookie2 || !http_find_header(htx, ist("Set-Cookie"), &ctx, 1)) { if (!http_find_header(htx, ist("Set-Cookie2"), &ctx, 1)) break; is_cookie2 = 1;