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
99009528
Unverified
Commit
99009528
authored
Sep 01, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VSB_QUOTE_JSON does not produce JSON. Document what it does in the test
parent
fd78cc32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
vsb_test.c
lib/libvarnish/vsb_test.c
+18
-0
No files found.
lib/libvarnish/vsb_test.c
View file @
99009528
...
...
@@ -83,6 +83,24 @@ static struct tc tcs[] = {
5
,
"
\x00\n\x7e\x7f\xff
"
,
"PFX
\"\\
x00
\\
n
\"\n
PFX
\"
~
\\
x7f
\\
xff
\"
"
,
},
/*
* VSB_QUOTE_JSON puts >0x7e literally
*/
{
VSB_QUOTE_JSON
,
4
,
"
\xf0\x9f\x90\xb0
"
,
"PFX
\xf0\x9f\x90\xb0
"
,
},
/*
* VSB_QUOTE_JSON encodes <0x20 as \u00XX, which looks like
* unicode codepoints in the JSON standard, but are just
* individual bytes
*/
{
VSB_QUOTE_JSON
,
5
,
"
\"\x01\x02\x03\x04
"
,
"PFX
\\\"\\
u0001
\\
u0002
\\
u0003
\\
u0004"
,
},
{
VSB_QUOTE_JSON
,
5
,
"
\x00\n\x7e\x7f\xff
"
,
...
...
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