Skip to content

Commit

Permalink
doc: Fix the cookie.keep_re() example
Browse files Browse the repository at this point in the history
Reported by Justin Lloyd.
  • Loading branch information
dridi committed Apr 6, 2021
1 parent 78ccf7b commit 606977b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vmod/vmod_cookie.vcc
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Example::

sub vcl_recv {
cookie.parse("cookie1: value1; cookie2: value2; cookie3: value3");
cookie.keep_re("^cookie1,cookie2");
cookie.keep_re("^cookie[12]$");
# get_string() will now yield
# "cookie1: value1; cookie2: value2;";
}
Expand Down

0 comments on commit 606977b

Please sign in to comment.