Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Teach libvcc how to set HEADER += STRING_LIST;
- Loading branch information
Showing
2 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,25 @@ | |||
varnishtest "set VCL_??? += VCL_STRING;" | |||
|
|||
server s1 { | |||
rxreq | |||
expect req.url == "/hello/world" | |||
expect req.http.host == helloworld | |||
txresp -hdr "x-powered-by: varnishtest" | |||
} -start | |||
|
|||
varnish v1 -vcl+backend { | |||
sub vcl_backend_fetch { | |||
set bereq.url += "/world"; | |||
set bereq.http.host += "world"; | |||
} | |||
sub vcl_backend_response { | |||
set beresp.http.x-powered-by += bereq.http.x-varnish; | |||
} | |||
} -start | |||
|
|||
client c1 { | |||
txreq -url "/hello" -hdr "host: hello" | |||
rxresp | |||
expect resp.status == 200 | |||
expect resp.http.x-powered-by == varnishtest1002 | |||
} -run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters