Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
eb7004aa
Unverified
Commit
eb7004aa
authored
Sep 12, 2022
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fodder for #3844 discussion
parent
6b5ad52f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
v00020.vtc
bin/varnishtest/tests/v00020.vtc
+14
-0
No files found.
bin/varnishtest/tests/v00020.vtc
View file @
eb7004aa
...
...
@@ -480,6 +480,13 @@ varnish v1 -vcl+backend {
(resp.http.foo + resp.http.bar) == ("X" + resp.http.foo);
// Ticket 2809
set resp.http.bar = true == false;
set resp.http.a = req.http.inexistent;
// correct? #3844
set resp.http.a-eq-inexistent = resp.http.a == req.http.inexistent;
// discussion in #3844 - and should !!hdr work?
set resp.http.is-a = !(!resp.http.a);
set resp.http.is-inexistent = !(!req.http.inexistent);
}
sub vcl_deliver {
set resp.http.p = (0 + 999999999999999);
...
...
@@ -499,6 +506,13 @@ client c1 {
expect resp.http.p == 999999999999999
expect resp.http.n == -999999999999999
expect resp.http.o == 200
expect resp.http.a == ""
# correct? #3844
expect resp.http.a-eq-inexistent == "false"
# discussion in #3844
expect resp.http.is-a == "true"
expect resp.http.is-inexistent == "false"
} -run
varnish v1 -vcl {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment