Commit bd10b8bc authored by Federico G. Schwindt's avatar Federico G. Schwindt Committed by Lasse Karstensen

Use req as intended

parent cb1e0b5a
......@@ -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;
}
}
......
......@@ -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
......
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment