[master] 4bb6e20 Use req as intended
Federico G. Schwindt
fgsch at lodoss.net
Fri Nov 27 18:24:03 CET 2015
commit 4bb6e20f1074296311ad3e953871eecbbaf1e8f5
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date: Fri Nov 27 16:39:36 2015 +0000
Use req as intended
diff --git a/doc/sphinx/phk/gzip.rst b/doc/sphinx/phk/gzip.rst
index ae244d9..c5e4aad 100644
--- a/doc/sphinx/phk/gzip.rst
+++ b/doc/sphinx/phk/gzip.rst
@@ -151,7 +151,7 @@ compression efficiency, you should::
sub vcl_miss {
if (object needs ESI processing) {
- unset bereq.http.accept-encoding;
+ unset req.http.accept-encoding;
}
}
diff --git a/doc/sphinx/reference/vmod.rst b/doc/sphinx/reference/vmod.rst
index 91953b0..0d30162 100644
--- a/doc/sphinx/reference/vmod.rst
+++ b/doc/sphinx/reference/vmod.rst
@@ -231,7 +231,7 @@ STRING_LIST
Consider this contrived example::
- set bereq.http.foo = std.toupper(req.http.foo + req.http.bar);
+ set req.http.foo = std.toupper(req.http.foo + req.http.bar);
The usual way to do this, would be be to allocate memory for
the concatenated string, then pass that to ``toupper()`` which in
diff --git a/doc/sphinx/users-guide/devicedetection.rst b/doc/sphinx/users-guide/devicedetection.rst
index 9138816..67f711a 100644
--- a/doc/sphinx/users-guide/devicedetection.rst
+++ b/doc/sphinx/users-guide/devicedetection.rst
@@ -127,8 +127,8 @@ VCL::
}
# override the header before it is sent to the backend
- sub vcl_miss { if (req.http.X-UA-Device) { set bereq.http.User-Agent = req.http.X-UA-Device; } }
- sub vcl_pass { if (req.http.X-UA-Device) { set bereq.http.User-Agent = req.http.X-UA-Device; } }
+ sub vcl_miss { if (req.http.X-UA-Device) { set req.http.User-Agent = req.http.X-UA-Device; } }
+ sub vcl_pass { if (req.http.X-UA-Device) { set req.http.User-Agent = req.http.X-UA-Device; } }
# standard Vary handling code from previous examples.
sub vcl_backend_response {
More information about the varnish-commit
mailing list