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
83ca874c
Commit
83ca874c
authored
Jan 29, 2019
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test all the atypical GZIP headers
parent
75e4de5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
g00008.vtc
bin/varnishtest/tests/g00008.vtc
+30
-0
No files found.
bin/varnishtest/tests/g00008.vtc
0 → 100644
View file @
83ca874c
varnishtest "Test uncommon GZIP header fields"
# With a a handcrafted GZIP file with all optional header fields
server s1 {
rxreq
txresp -hdr "content-encoding: gzip" -nolen
sendhex "1f 8b"
sendhex "08"
sendhex "1f"
sendhex "12 34 56 78"
sendhex "00"
sendhex "03"
sendhex "08 00 50 48 04 00 4b 61 6d 70"
sendhex "46 4e 41 4d 45 00"
sendhex "46 43 4f 4d 4d 45 4e 54 00"
sendhex "96 cc"
sendhex "f3 48 cd c9 c9 57 70 8f 52 08 cf 2f ca 49 e1 02 00"
sendhex "3a 0b 41 35"
sendhex "0f 00 00 00"
} -start
varnish v1 -vcl+backend { } -start
client c1 {
txreq
rxresp
expect resp.status == 200
expect resp.body == "Hello GZ World\n"
} -run
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