Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-frozen
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
libvmod-frozen
Commits
fd4d6609
Unverified
Commit
fd4d6609
authored
Sep 08, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test UTF-8 and escaped characters
parent
64673625
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
vmod_frozen.vtc
src/vtc/vmod_frozen.vtc
+9
-9
No files found.
src/vtc/vmod_frozen.vtc
View file @
fd4d6609
...
...
@@ -3,7 +3,7 @@ varnishtest "test vmod-frozen"
server s1 {
rxreq
txresp -nolen -hdr "Transfer-Encoding: chunked"
chunked "{ a: 1, b: \"hi there\", c: true, d: false, "
chunked "{ a: 1, b: \"hi
€\\t\\\"
there\", c: true, d: false, "
chunked " e : null, f: [ 1, -2, 3], g: { \"1\": [], h"
chunked ": [ 7 ] } } "
chunkedlen 0
...
...
@@ -80,7 +80,7 @@ varnish v1 -vcl+backend {
if (req.url == "/static") {
set resp.http.parse =
p_test.parse(
{"{ a: 1, b: "hi there", c: true, d: false, "} +
{"{ a: 1, b: "hi
€\t\"
there", c: true, d: false, "} +
{" e : null, f: [ 1, -2, 3], g: { "1": [], h"} +
{": [ 7 ] } } "});
}
...
...
@@ -109,7 +109,7 @@ client c1 {
expect resp.http.parse == true
expect resp.http.a == 1
expect resp.http.a-type == NUMBER
expect resp.http.b == "hi there"
expect resp.http.b == "hi
€\\t\\\"
there"
expect resp.http.b-type == STRING
expect resp.http.c == true
expect resp.http.c-type == BOOL
...
...
@@ -135,7 +135,7 @@ client c1 {
client c2 {
txreq -url "/req.body" -hdr "max: 1K" \
-nolen -hdr "Transfer-Encoding: chunked"
chunked "{ a: 1, b: \"hi there\", c: true, d: false, "
chunked "{ a: 1, b: \"hi
€\\t\\\"
there\", c: true, d: false, "
chunked " e : null, f: [ 1, -2, 3], g: { \"1\": [], h"
chunked ": [ 7 ] } } "
chunkedlen 0
...
...
@@ -146,7 +146,7 @@ client c2 {
expect resp.http.parse == true
expect resp.http.a == 1
expect resp.http.a-type == NUMBER
expect resp.http.b == "hi there"
expect resp.http.b == "hi
€\\t\\\"
there"
expect resp.http.b-type == STRING
expect resp.http.c == true
expect resp.http.c-type == BOOL
...
...
@@ -172,7 +172,7 @@ client c2 {
client c3 {
txreq -url "/req.body" -hdr "cache: true" -hdr "max: 1K" \
-nolen -hdr "Transfer-Encoding: chunked"
chunked "{ a: 1, b: \"hi there\", c: true, d: false, "
chunked "{ a: 1, b: \"hi
€\\t\\\"
there\", c: true, d: false, "
chunked " e : null, f: [ 1, -2, 3], g: { \"1\": [], h"
chunked ": [ 7 ] } } "
chunkedlen 0
...
...
@@ -183,7 +183,7 @@ client c3 {
expect resp.http.parse == true
expect resp.http.a == 1
expect resp.http.a-type == NUMBER
expect resp.http.b == "hi there"
expect resp.http.b == "hi
€\\t\\\"
there"
expect resp.http.b-type == STRING
expect resp.http.c == true
expect resp.http.c-type == BOOL
...
...
@@ -215,7 +215,7 @@ client c4 {
expect resp.http.parse == true
expect resp.http.a == 1
expect resp.http.a-type == NUMBER
expect resp.http.b == "hi there"
expect resp.http.b == "hi
€\\t\\\"
there"
expect resp.http.b-type == STRING
expect resp.http.c == true
expect resp.http.c-type == BOOL
...
...
@@ -249,7 +249,7 @@ logexpect l11 -v v1 -q "ReqURL ~ \"^/req.body\" and ReqHeader:max ~ \"^10B\"" {
client c11 {
txreq -url "/req.body" -hdr "max: 10B" \
-nolen -hdr "Transfer-Encoding: chunked"
chunked "{ a: 1, b: \"hi there\", c: true, d: false, "
chunked "{ a: 1, b: \"hi
€\\t\\\"
there\", c: true, d: false, "
chunked " e : null, f: [ 1, -2, 3], g: { \"1\": [], h"
chunked ": [ 7 ] } } "
chunkedlen 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