My origin is returning a response with multiple Set-Cookie headers:
set-cookie: cookie_one=value1; expires=Sat, 27-Apr-2019 20:34:33 GMT; Max-Age=31536000; path=/; domain=.mydomain.com set-cookie: cookie_two=value2; expires=Sat, 27-Apr-2019 20:34:33 GMT; Max-Age=31536000; path=/; domain=.mydomain.com
I have tried several methods for getting the ENTIRE header (value, expires, Max-Age, etc):
I am able to get the VALUES of both set-cookie headers by using: setcookie.get_value_by_name(beresp, “<cookie_name>”). I have been unable to get the entire header for the second Set-Cookie header and I’ve tried regular expressions and beresp.http.Set-Cookie:<cookie_name> (https://docs.fastly.com/guides/vcl/isolating-header-values-without-regular-expressions).
Does Fastly not support manipulation of the second same-name header? I can see from this post: Having multiple Set-Cookie that as of 03/2015 it was not supported via the interface but is there a way to do this in VCL?