This repository has been archived by the owner on Jul 30, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r3965: Fix for #445: including zero length esi objects with chu…
…nked encoding. git-svn-id: http://www.varnish-cache.org/svn/branches/2.0@3995 d4fa192b-c00b-0410-8231-f00ffab90ce4
- Loading branch information
Tollef Fog Heen
committed
Mar 23, 2009
1 parent
5a5fc4e
commit f830477
Showing
2 changed files
with
30 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
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# $Id$ | ||
|
||
test "zero length ESI include segmens with chunked encoding" | ||
|
||
server s1 { | ||
rxreq | ||
expect req.url == "/" | ||
txresp -body {<foo><esi:include src="/bar"><bar>} | ||
rxreq | ||
expect req.url == "/bar" | ||
txresp | ||
} -start | ||
|
||
varnish v1 -vcl+backend { | ||
sub vcl_fetch { | ||
esi; | ||
} | ||
} -start | ||
|
||
client c1 { | ||
txreq | ||
rxresp | ||
expect resp.bodylen == 10 | ||
} -run |