Commit 5cff501f authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

New test for string comparisons.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4187 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent ba9feb28
# $Id$
test "Test that headers can be compared"
server s1 {
rxreq
expect req.url == "/foo"
txresp -status 200 -body "1"
} -start
varnish v1 -vcl+backend {
sub vcl_recv {
if (req.http.etag == req.http.if-none-match) {
error 400 "FOO";
}
}
} -start
client c1 {
txreq -url "/foo"
rxresp
expect resp.status == 200
expect resp.bodylen == 1
txreq -url "/foo" -hdr "etag: foo" -hdr "if-none-match: foo"
rxresp
expect resp.status == 400
} -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