Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnishevent3
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
varnishevent3
Commits
66e7a250
Commit
66e7a250
authored
Jan 22, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a testcase for including a non-gzip'ed ESI object in a gzip'ed
ESI object.
parent
2899bb92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
0 deletions
+40
-0
e00023.vtc
bin/varnishtest/tests/e00023.vtc
+40
-0
No files found.
bin/varnishtest/tests/e00023.vtc
0 → 100644
View file @
66e7a250
# $Id$
test "Include an ungzip'ed ESI object in a gzip'ed ESI object"
server s1 {
rxreq
expect req.http.accept-encoding == gzip
txresp -gzipbody {
<html>
1
Before include 2
<esi:include
src=
"/foo"
/>
3
After include 4
}
rxreq
expect req.url == "/foo"
txresp -body {
<h1>
/////
<h2>
}
} -start
varnish v1 -vcl+backend {
sub vcl_fetch {
set beresp.do_esi = true;
}
} -start
varnish v1 -cliok "param.set http_gzip_support true"
varnish v1 -cliok "param.set esi_syntax 0x3e"
varnish v1 -cliok "param.set diag_bitmap 0x10000"
client c1 {
txreq -hdr "Accept-Encoding: gzip"
rxresp
expect resp.http.content-encoding == gzip
gunzip
expect resp.status == 200
expect resp.bodylen == 79
}
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