[master] 9379ac9 Correct the notes on bereq. and beresp.backend in Upgrading to 5.1.

Geoff Simmons geoff at uplex.de
Fri Mar 10 18:26:05 CET 2017


commit 9379ac943bceabbfc125756c5207a8fe74d55827
Author: Geoff Simmons <geoff at uplex.de>
Date:   Fri Mar 10 18:24:33 2017 +0100

    Correct the notes on bereq. and beresp.backend in Upgrading to 5.1.

diff --git a/doc/sphinx/whats-new/upgrading-5.1.rst b/doc/sphinx/whats-new/upgrading-5.1.rst
index f4ea684..e518b42 100644
--- a/doc/sphinx/whats-new/upgrading-5.1.rst
+++ b/doc/sphinx/whats-new/upgrading-5.1.rst
@@ -73,11 +73,13 @@ Changes to VCL
 Type conversions
 ~~~~~~~~~~~~~~~~
 
-* When ``bereq.backend`` and ``beresp.backend`` are set to a director,
-  then they return an actual backend on subsequent reads if the
-  director resolves to a backend immediately, or the director otherwise.
-  When used in string context, they return the name of the director
-  or of the resolved backend.
+* When ``bereq.backend`` is set to a director, then it returns an
+  actual backend on subsequent reads if the director resolves to a
+  backend immediately, or the director otherwise. If ``bereq.backend``
+  was set to a director, then ``beresp.backend`` returns the backend
+  to which it was set for the fetch.  When either of these is used in
+  string context, it returns the name of the director or of the
+  resolved backend.
 
 * DURATION types may be used in boolean contexts, and are evaluated as
   false when the duration is less than or equal to zero, true



More information about the varnish-commit mailing list