Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
bdc88fbb
Commit
bdc88fbb
authored
Feb 14, 2012
by
Martin Blix Grydeland
Committed by
Tollef Fog Heen
Mar 09, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Honor remove-flag also when processing comments in ESI parsing.
Fixes: #1092
parent
a94b3a11
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
1 deletion
+34
-1
cache_esi_parse.c
bin/varnishd/cache_esi_parse.c
+0
-1
r01092.vtc
bin/varnishtest/tests/r01092.vtc
+34
-0
No files found.
bin/varnishd/cache_esi_parse.c
View file @
bdc88fbb
...
...
@@ -705,7 +705,6 @@ VEP_parse(const struct sess *sp, const char *p, size_t l)
vep
->
until_p
=
vep
->
until
=
"-->"
;
vep
->
until_s
=
VEP_NEXTTAG
;
vep
->
state
=
VEP_UNTIL
;
vep_mark_verbatim
(
vep
,
p
);
break
;
}
p
++
;
...
...
bin/varnishtest/tests/r01092.vtc
0 → 100644
View file @
bdc88fbb
varnishtest "Test case for #1092 - esi:remove and comments"
server s1 {
rxreq
txresp -body {
<html>
Keep-1
<!--esX Keep-22 -->
<!--esi Keep-333 -->
<esi:remove>
Remove-1
<!-- Remove-22 -->
<!--esi Remove-333 -->
Remove-4444
</esi:remove>
Keep-4444
</html>
}
} -start
varnish v1 -vcl+backend {
sub vcl_fetch {
set beresp.do_esi = true;
}
} -start -cliok "param.set esi_syntax 4"
client c1 {
txreq
rxresp
expect resp.bodylen == 80
}
client c1 -run
varnish v1 -expect esi_errors == 1
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment