varnish / varnish-modules

Collection of Varnish Cache modules (vmods) by Varnish Software
Other
182 stars 86 forks source link

the cookie.delete() can be delete multiple value? #116

Closed redbox-cdn closed 5 years ago

redbox-cdn commented 6 years ago

Hi the cookie.delete() can be delete multiple value?

it does not work

cookie.parse(req.http.Cookie);
cookie.delete("aaa","bbb");
set req.http.cookie = cookie.get_string();

it is work

cookie.parse(req.http.Cookie);
cookie.delete("aaa");
cookie.delete("bbb");
set req.http.cookie = cookie.get_string();
dridi commented 5 years ago

There is currently no support for vararg functions in VCL, if calling cookie.delete() multiple times works fine for you there is nothing more we can do.