[master] 3321dc20c vmod_cookie: remove cookie.format_rfc1123
Nils Goroll
nils.goroll at uplex.de
Wed Jul 9 13:59:04 UTC 2025
commit 3321dc20cc10664e0fdbe681105a3bf28bc3120d
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Wed Jul 9 15:58:15 2025 +0200
vmod_cookie: remove cookie.format_rfc1123
diff --git a/doc/changes.rst b/doc/changes.rst
index 94b9de0e0..06e8d9036 100644
--- a/doc/changes.rst
+++ b/doc/changes.rst
@@ -41,6 +41,9 @@ Varnish Cache NEXT (8.0, 2025-09-15)
.. PLEASE keep this roughly in commit order as shown by git-log / tig
(new to old)
+* The VMOD function ``cookie.format_rfc1123()`` is now removed. It had been
+ renamed to ``cookie.format_date()``.
+
* The ACL option ``+fold`` is now default. This means that ACL entries will
automatically be merged for adjacent networks and subnets will be removed in
the presence of supernets. This affects logging. The old default behavior can
diff --git a/vmod/tests/cookie_b00010.vtc b/vmod/tests/cookie_b00010.vtc
index fc8cbdd35..f67469c4e 100644
--- a/vmod/tests/cookie_b00010.vtc
+++ b/vmod/tests/cookie_b00010.vtc
@@ -5,7 +5,7 @@ varnish v1 -vcl {
backend be none;
sub vcl_recv { return (synth(200)); }
sub vcl_synth {
- set resp.http.x-date = cookie.format_rfc1123(now, 1d);
+ set resp.http.x-date = cookie.format_date(now, 1d);
}
} -start
diff --git a/vmod/vmod_cookie.vcc b/vmod/vmod_cookie.vcc
index 69f167d02..cbc133e47 100644
--- a/vmod/vmod_cookie.vcc
+++ b/vmod/vmod_cookie.vcc
@@ -250,8 +250,3 @@ Example::
cookie.set("cookie1", "value1");
std.log("cookie1 value is: " + cookie.get("cookie1"));
}
-
-DEPRECATED
-==========
-
-$Alias format_rfc1123 format_date
More information about the varnish-commit
mailing list