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
dd54061d
Commit
dd54061d
authored
Feb 15, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test corner-cases with an object containing only an <esi:include>
with/without leading and training verbatim data.
parent
ea15f759
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
82 additions
and
0 deletions
+82
-0
e00026.vtc
bin/varnishtest/tests/e00026.vtc
+82
-0
No files found.
bin/varnishtest/tests/e00026.vtc
0 → 100644
View file @
dd54061d
# $Id$
test "Test esi-include + gzip edgecase with respect to gzip hdr"
server s1 {
rxreq
expect req.url == "/foo"
txresp -gzipbody {<h1>/////<h2>}
rxreq
expect req.url == "/1"
expect req.http.accept-encoding == gzip
txresp -gzipbody {B<esi:include src="/foo"/>A}
rxreq
expect req.url == "/2"
expect req.http.accept-encoding == gzip
txresp -gzipbody {B<esi:include src="/foo"/>}
rxreq
expect req.url == "/3"
expect req.http.accept-encoding == gzip
txresp -gzipbody {<esi:include src="/foo"/>A}
rxreq
expect req.url == "/4"
expect req.http.accept-encoding == gzip
txresp -gzipbody {<esi:include src="/foo"/>}
} -start
varnish v1 -vcl+backend {
sub vcl_fetch {
if (req.url != "/foo") {
set beresp.do_esi = true;
}
}
} -start
varnish v1 -cliok "param.set esi_syntax 0x21"
varnish v1 -cliok "param.set diag_bitmap 0x10000"
client c1 {
txreq -url /foo -hdr "Accept-Encoding: gzip"
rxresp
gunzip
expect resp.status == 200
expect resp.bodylen == 13
txreq -url /1 -hdr "Accept-Encoding: gzip"
rxresp
expect resp.http.content-encoding == gzip
gunzip
expect resp.status == 200
expect resp.bodylen == 15
txreq -url /2 -hdr "Accept-Encoding: gzip"
rxresp
expect resp.http.content-encoding == gzip
gunzip
expect resp.status == 200
expect resp.bodylen == 14
txreq -url /3 -hdr "Accept-Encoding: gzip"
rxresp
expect resp.http.content-encoding == gzip
gunzip
expect resp.status == 200
expect resp.bodylen == 14
txreq -url /4 -hdr "Accept-Encoding: gzip"
rxresp
expect resp.http.content-encoding == gzip
gunzip
expect resp.status == 200
expect resp.bodylen == 13
}
client c1 -run
varnish v1 -expect esi_errors == 0
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