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
21f8d045
Commit
21f8d045
authored
Sep 20, 2023
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vtc: Add coverage for protected headers
Closes #3984
parent
75babde9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
0 deletions
+57
-0
r03984.vtc
bin/varnishtest/tests/r03984.vtc
+57
-0
No files found.
bin/varnishtest/tests/r03984.vtc
0 → 100644
View file @
21f8d045
varnishtest "Access protected headers"
varnish v1 -vcl {
backend be none;
sub access_req {
if (req.http.content-length || req.http.content-encoding) {}
}
sub access_resp {
if (resp.http.content-length || resp.http.content-encoding) {}
}
sub access_bereq {
if (bereq.http.content-length || bereq.http.content-encoding) {}
}
sub access_beresp {
if (beresp.http.content-length || beresp.http.content-encoding) {}
}
sub vcl_recv {
call access_req;
}
sub vcl_hash {
call access_req;
}
sub vcl_purge {
call access_req;
}
sub vcl_miss {
call access_req;
}
sub vcl_pass {
call access_req;
}
sub vcl_hit {
call access_req;
}
sub vcl_synth {
call access_req;
call access_resp;
}
sub vcl_deliver {
call access_req;
call access_resp;
}
sub vcl_backend_fetch {
call access_bereq;
}
sub vcl_backend_error {
call access_bereq;
call access_beresp;
}
sub vcl_backend_response {
call access_bereq;
call access_beresp;
}
}
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