[master] 1067ad1 Change req.* to bereq.* in vcl_backend_response{} where it makes no difference in any way.
Poul-Henning Kamp
phk at varnish-cache.org
Fri May 3 14:14:41 CEST 2013
commit 1067ad129b6f00cbd705586e0ac4159ed1edc746
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Fri May 3 12:14:12 2013 +0000
Change req.* to bereq.* in vcl_backend_response{} where it makes no
difference in any way.
diff --git a/bin/varnishtest/tests/e00019.vtc b/bin/varnishtest/tests/e00019.vtc
index 5731647..6a4b402 100644
--- a/bin/varnishtest/tests/e00019.vtc
+++ b/bin/varnishtest/tests/e00019.vtc
@@ -30,7 +30,7 @@ server s1 {
varnish v1 -vcl+backend {
sub vcl_backend_response {
- if (req.url == "bar") {
+ if (bereq.url == "bar") {
set beresp.do_esi = true;
}
}
diff --git a/bin/varnishtest/tests/e00024.vtc b/bin/varnishtest/tests/e00024.vtc
index ea9f6c4..98b40cd 100644
--- a/bin/varnishtest/tests/e00024.vtc
+++ b/bin/varnishtest/tests/e00024.vtc
@@ -61,7 +61,7 @@ server s1 {
varnish v1 -vcl+backend {
sub vcl_backend_response {
- if (req.url == "/") {
+ if (bereq.url == "/") {
set beresp.do_esi = true;
}
}
diff --git a/bin/varnishtest/tests/e00026.vtc b/bin/varnishtest/tests/e00026.vtc
index 6d2e50c..d4c3a39 100644
--- a/bin/varnishtest/tests/e00026.vtc
+++ b/bin/varnishtest/tests/e00026.vtc
@@ -29,7 +29,7 @@ server s1 {
varnish v1 -vcl+backend {
sub vcl_backend_response {
- if (req.url != "/foo") {
+ if (bereq.url != "/foo") {
set beresp.do_esi = true;
}
}
diff --git a/bin/varnishtest/tests/r00345.vtc b/bin/varnishtest/tests/r00345.vtc
index 772c60f..b6c819a 100644
--- a/bin/varnishtest/tests/r00345.vtc
+++ b/bin/varnishtest/tests/r00345.vtc
@@ -11,7 +11,7 @@ server s1 {
varnish v1 -arg "-p debug=+workspace" -vcl+backend {
sub vcl_backend_response {
- if (req.url == "/") {
+ if (bereq.url == "/") {
set beresp.do_esi = true;
}
}
diff --git a/bin/varnishtest/tests/r00386.vtc b/bin/varnishtest/tests/r00386.vtc
index 3edcb35..3d43b5a 100644
--- a/bin/varnishtest/tests/r00386.vtc
+++ b/bin/varnishtest/tests/r00386.vtc
@@ -11,7 +11,7 @@ server s1 {
varnish v1 -arg "-p debug=+workspace" -vcl+backend {
sub vcl_backend_response {
- if (req.url == "/") {
+ if (bereq.url == "/") {
set beresp.do_esi = true;
}
}
diff --git a/bin/varnishtest/tests/r00861.vtc b/bin/varnishtest/tests/r00861.vtc
index ff6b042..45a624d 100644
--- a/bin/varnishtest/tests/r00861.vtc
+++ b/bin/varnishtest/tests/r00861.vtc
@@ -24,7 +24,7 @@ server s1 {
varnish v1 \
-vcl+backend {
sub vcl_backend_response {
- if (req.url == "/1" || req.url == "/2") {
+ if (bereq.url == "/1" || bereq.url == "/2") {
set beresp.do_esi = true;
set beresp.do_gzip = true;
}
diff --git a/bin/varnishtest/tests/r01029.vtc b/bin/varnishtest/tests/r01029.vtc
index e388043..745fb68 100644
--- a/bin/varnishtest/tests/r01029.vtc
+++ b/bin/varnishtest/tests/r01029.vtc
@@ -14,7 +14,7 @@ server s1 {
varnish v1 -vcl+backend {
sub vcl_backend_response {
set beresp.do_esi = true;
- if (req.url == "/foo") {
+ if (bereq.url == "/foo") {
set beresp.ttl = 0s;
} else {
set beresp.ttl = 10m;
diff --git a/bin/varnishtest/tests/r01030.vtc b/bin/varnishtest/tests/r01030.vtc
index 7ebd036..a746852 100644
--- a/bin/varnishtest/tests/r01030.vtc
+++ b/bin/varnishtest/tests/r01030.vtc
@@ -21,7 +21,7 @@ varnish v1 -vcl+backend {
return (lookup);
}
sub vcl_backend_response {
- set beresp.http.url = req.url;
+ set beresp.http.url = bereq.url;
}
} -start
diff --git a/bin/varnishtest/tests/r01109.vtc b/bin/varnishtest/tests/r01109.vtc
index 3b0fd23..46ef404 100644
--- a/bin/varnishtest/tests/r01109.vtc
+++ b/bin/varnishtest/tests/r01109.vtc
@@ -23,7 +23,7 @@ server s1 {
varnish v1 -arg "-pfetch_chunksize=4k" -arg "-pgzip_level=0" -arg "-pthread_pool_stack=131072" -vcl+backend {
sub vcl_backend_response {
- if (req.url ~ "/test") {
+ if (bereq.url ~ "/test") {
set beresp.do_esi = true;
}
set beresp.do_gzip = true;
diff --git a/bin/varnishtest/tests/r01113.vtc b/bin/varnishtest/tests/r01113.vtc
index dc71417..3df7f91 100644
--- a/bin/varnishtest/tests/r01113.vtc
+++ b/bin/varnishtest/tests/r01113.vtc
@@ -21,7 +21,7 @@ varnish v1 -vcl+backend {
}
}
sub vcl_backend_response {
- if (req.url == "/fetch") {
+ if (bereq.url == "/fetch") {
return(restart);
}
}
diff --git a/bin/varnishtest/tests/r01123.vtc b/bin/varnishtest/tests/r01123.vtc
index a979fe6..87d1e80 100644
--- a/bin/varnishtest/tests/r01123.vtc
+++ b/bin/varnishtest/tests/r01123.vtc
@@ -10,7 +10,7 @@ server s1 {
varnish v1 -vcl+backend {
sub vcl_backend_response {
- if (req.url == "/") {
+ if (bereq.url == "/") {
set beresp.do_esi = true;
}
set beresp.do_gzip = true;
diff --git a/bin/varnishtest/tests/v00033.vtc b/bin/varnishtest/tests/v00033.vtc
index 4494c32..d3eecc3 100644
--- a/bin/varnishtest/tests/v00033.vtc
+++ b/bin/varnishtest/tests/v00033.vtc
@@ -14,7 +14,7 @@ varnish v1 -vcl+backend {
set beresp.http.foo =
storage.nowhere.free_space +
1 B + 1 KB + 1 MB + 1GB + 1TB;
- if (req.url == "/foo") {
+ if (bereq.url == "/foo") {
set beresp.storage = "Transient";
}
}
More information about the varnish-commit
mailing list