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
35b9981b
Commit
35b9981b
authored
Jan 13, 2014
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a testcase for #1406 to -trunk, which is not affected.
parent
a16c0707
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
r01406.vtc
bin/varnishtest/tests/r01406.vtc
+35
-0
No files found.
bin/varnishtest/tests/r01406.vtc
0 → 100644
View file @
35b9981b
varnishtest "#1406 empty header"
server s1 {
rxreq
txresp
} -start
varnish v1 -arg "-p vcc_allow_inline_c=true" -vcl+backend {
import ${vmod_std} ;
C{
static const struct gethdr_s VGC_HDR_REQ_foo =
{ HDR_REQ, "\020X-CUSTOM-HEADER:"};
}C
sub vcl_recv {
C{
VRT_SetHdr(ctx, &VGC_HDR_REQ_foo, 0, vrt_magic_string_end );
}C
}
sub vcl_deliver {
if (req.http.X-CUSTOM-HEADER) {
set resp.http.foo = "yes";
} else {
set resp.http.foo = "no";
}
}
} -start
client c1 {
txreq
rxresp
expect resp.http.foo == yes
} -run
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