Commit 4e1736f5 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Regression test case for ticket 255



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2760 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent dc8755d7
# $Id$
test "Regression test for #255: Segfault on header token separation"
server s1 {
rxreq
txresp \
-hdr "Date: Thu, 19 Jun 2008 21:14:49 GMT" \
-hdr "Content-Length: 7" \
-hdr "Expires: Thu, 19 Jun 2008 21:14:49 GMT" \
-hdr "Last-Modified: Sun, 27 Nov 2005 05:41:47 GMT" \
-hdr "Cache-Control: max-age =0" \
-body "012345\n"
}
varnish v1 -vcl+backend { sub vcl_recv {set req.backend = s1;} } -start
server s1 -start
client c1 {
txreq -url "/"
rxresp
expect resp.status == 200
expect resp.http.X-Varnish == "1001"
expect resp.http.Cache-Control == "max-age =0"
}
client c1 -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