git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2922
d4fa192b-c00b-0410-8231-
f00ffab90ce4
--- /dev/null
+# $Id: e00004.vtc 2906 2008-07-08 10:29:07Z phk $
+
+test "ESI parsing errors"
+
+server s1 {
+ rxreq
+ txresp -body {
+ Before include
+ <!--esi <esi:include src="/body"/> -->
+ After include
+ <!-- normal comment -->
+ <esi:bogosity/>
+ }
+ rxreq
+ expect req.url == "/body"
+ txresp -body {
+ Included file
+ }
+} -start
+
+varnish v1 -vcl+backend {
+ sub vcl_fetch {
+ esi;
+ }
+} -start
+
+client c1 {
+ txreq
+ rxresp
+ expect resp.status == 200
+}
+
+client c1 -run