• Poul-Henning Kamp's avatar
    Push hole through the esi:include path, making a very trivial example · 654a323c
    Poul-Henning Kamp authored
    work fully, leaving a trail of XXX and other devastation:
    
    Add an esi nesting counter to the session.
    
    Teach RES_WriteObj() to send an object as a chunk in chunked encoding.
    
    Bail cnt_done() early for nested ESI transactions.
    
    Catch the src="" attribute in esi:include and store it in the esibit.
    
    In ESI_Deliver(), recurse into CNT_Session(STP_RECV) in order to handle
    the include element of an esibit.
    
    Recursion is probably not the ideal solution here, but it might quite
    conceiveably be the best one, since it is quite cheap and very trivial.
    
    Outstanding issues: too many to list still.
    
    The following example worked for me:
    
    	<html>
    	<body>
    	<pre>
    	<esi:include src="/esi.txt"/>
    	</pre>
    	</body>
    	</html>
    
    
    
    git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2170 d4fa192b-c00b-0410-8231-f00ffab90ce4
    654a323c
Name
Last commit
Last update
bin Loading commit data...
debian Loading commit data...
doc Loading commit data...
etc Loading commit data...
include Loading commit data...
lib Loading commit data...
man Loading commit data...
redhat Loading commit data...
ChangeLog Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
README Loading commit data...
autogen.des Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
varnishapi.pc.in Loading commit data...