[master] 07a9e0f More changes
Federico G. Schwindt
fgsch at lodoss.net
Wed Sep 14 18:19:15 CEST 2016
commit 07a9e0f833f40097e4550d37ba628b1b77c111d1
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date: Wed Sep 14 17:10:43 2016 +0100
More changes
diff --git a/doc/sphinx/whats-new/upgrading-5.0.rst b/doc/sphinx/whats-new/upgrading-5.0.rst
index 993d400..093005e 100644
--- a/doc/sphinx/whats-new/upgrading-5.0.rst
+++ b/doc/sphinx/whats-new/upgrading-5.0.rst
@@ -18,8 +18,15 @@ Changes to VCL
underscores (_). In addition, the first character should be alphabetic.
That is, the name should match "[A-Za-z][A-Za-z0-9\_-]*".
-* Like strings, backends and integers can now be used as boolean expressions
- in if statements.
+* Backend and integer types can be used in a boolean context.
+ See ``vcl(7)`` for details.
+
+* Add support to perform matches in assignments, obtaining a boolean
+ as result::
+
+ set req.http.foo = req.http.bar ~ "bar";
+
+* Returned values from functions and methods' calls can be thrown away.
backends
~~~~~~~~
@@ -31,13 +38,13 @@ backends
vcl_recv
~~~~~~~~
-* Added ``return(vcl(label))`` to switch to the VCL labelled `label`.
+* Added ``return (vcl(label))`` to switch to the VCL labelled `label`.
* The ``rollback`` function has been retired.
vcl_hit
~~~~~~~
-* Replace ``return(fetch)`` with ``return(miss)``.
+* Replace ``return (fetch)`` with ``return (miss)``.
vcl_backend_*
~~~~~~~~~~~~~
@@ -53,7 +60,7 @@ vcl_backend_fetch
* We now send request bodies by default (see :ref:_whatsnew_changes_5.0).
To keep the previous behaviour add the following code before any
- ``return()`` statement in this subroutine::
+ ``return (..)`` statement in this subroutine::
if (bereq.method == "GET") {
unset bereq.body;
More information about the varnish-commit
mailing list