[master] ff504802c make bereq.xid available in vcl_pipe
Nils Goroll
nils.goroll at uplex.de
Mon Jan 11 14:26:04 UTC 2021
commit ff504802c9033f28eb05642901947e26172ec5c2
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Mon Jan 11 15:02:37 2021 +0100
make bereq.xid available in vcl_pipe
as suggested by Dridi
diff --git a/bin/varnishtest/tests/b00001.vtc b/bin/varnishtest/tests/b00001.vtc
index 3a07e5eaf..db16d4bdd 100644
--- a/bin/varnishtest/tests/b00001.vtc
+++ b/bin/varnishtest/tests/b00001.vtc
@@ -20,6 +20,7 @@ varnish v1 -vcl+backend {
if (req.url == "/2") {
set bereq.http.connection = req.http.connection;
}
+ set bereq.http.xid = bereq.xid;
}
} -start
diff --git a/doc/sphinx/reference/vcl_var.rst b/doc/sphinx/reference/vcl_var.rst
index 828c1e60e..c9fa94df9 100644
--- a/doc/sphinx/reference/vcl_var.rst
+++ b/doc/sphinx/reference/vcl_var.rst
@@ -480,7 +480,7 @@ bereq.xid
Type: STRING
- Readable from: backend
+ Readable from: vcl_pipe, backend
Unique ID of this request.
More information about the varnish-commit
mailing list