Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
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
Hide 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)
...
@@ -705,7 +705,6 @@ VEP_parse(const struct sess *sp, const char *p, size_t l)
vep
->
until_p
=
vep
->
until
=
"-->"
;
vep
->
until_p
=
vep
->
until
=
"-->"
;
vep
->
until_s
=
VEP_NEXTTAG
;
vep
->
until_s
=
VEP_NEXTTAG
;
vep
->
state
=
VEP_UNTIL
;
vep
->
state
=
VEP_UNTIL
;
vep_mark_verbatim
(
vep
,
p
);
break
;
break
;
}
}
p
++
;
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