Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-blobcode
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
libvmod-blobcode
Commits
1c239a93
Commit
1c239a93
authored
Jan 30, 2016
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a test to verify truncated IDENTITY encoding when a blob has a
null byte in the middle
parent
1f7aa1db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
id.vtc
src/tests/id.vtc
+3
-0
No files found.
src/tests/id.vtc
View file @
1c239a93
...
...
@@ -52,6 +52,8 @@ varnish v1 -vcl {
"the lazy dog"
+
req
.
url
+
req
.
http
.
unset
+
""
,
decoding
=
IDENTITY
));
set
resp
.
http
.
truncated
=
blobcode
.
encode
(
IDENTITY
,
blobcode
.
decode
(
HEX
,
"666f6f00626172"
));
}
}
-
start
...
...
@@ -66,4 +68,5 @@ client c1 {
expect
resp
.
http
.
emptylist
==
""
expect
resp
.
http
.
param
==
"The quick brown fox jumps over the lazy dog"
expect
resp
.
http
.
paramlist
==
"/The quick brown fox jumps over the lazy dog/"
expect
resp
.
http
.
truncated
==
"foo"
}
-
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