[master] b698aec Also bereq.http.Accept_Encoding only gets set for passes

Nils Goroll nils.goroll at uplex.de
Tue Oct 4 20:10:05 CEST 2016


commit b698aec2f65dacbe7a069ffd3313aabc4ba3563d
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Tue Oct 4 20:08:27 2016 +0200

    Also bereq.http.Accept_Encoding only gets set for passes

diff --git a/doc/sphinx/users-guide/vcl-built-in-subs.rst b/doc/sphinx/users-guide/vcl-built-in-subs.rst
index e69a441..0128233 100644
--- a/doc/sphinx/users-guide/vcl-built-in-subs.rst
+++ b/doc/sphinx/users-guide/vcl-built-in-subs.rst
@@ -274,11 +274,13 @@ The `vcl_backend_fetch` subroutine may terminate with calling
 Before calling `vcl_backend_fetch`, varnish core prepares the `bereq`
 backend request as follows:
 
-* Set ``bereq.method`` to ``GET`` and ``bereq.proto`` to ``HTTP/1.1``,
-  unless the request is a `pass`
+* Unless the request is a `pass`,
 
-* Set ``bereq.http.Accept_Encoding`` to ``gzip`` if
-  :ref:`ref_param_http_gzip_support` is enabled
+  * set ``bereq.method`` to ``GET`` and ``bereq.proto`` to
+    ``HTTP/1.1`` and
+
+  * set ``bereq.http.Accept_Encoding`` to ``gzip`` if
+    :ref:`ref_param_http_gzip_support` is enabled.
 
 * If there is an existing cache object to be revalidated, set
   ``bereq.http.If-Modified-Since`` from its ``Last-Modified`` header



More information about the varnish-commit mailing list