Commit fcf43a93 authored by Federico G. Schwindt's avatar Federico G. Schwindt

And the actual *req.hash test

parent 7100ee41
varnishtest "Test req.hash and bereq.hash"
server s1 {
rxreq
txresp
} -start
varnish v1 -vcl+backend {
sub vcl_backend_response {
set beresp.http.bereq_hash = bereq.hash;
}
sub vcl_deliver {
set resp.http.req_hash = req.hash;
}
} -start
client c1 {
txreq
rxresp
expect resp.http.req_hash ~ "[[:xdigit:]]{64}"
expect resp.http.req_hash == resp.http.bereq_hash
} -run
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment