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
076545a6
Unverified
Commit
076545a6
authored
Aug 26, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor vtc: prep for different json sources
parent
b09ecc80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
vmod_frozen.vtc
src/vtc/vmod_frozen.vtc
+8
-4
No files found.
src/vtc/vmod_frozen.vtc
View file @
076545a6
...
...
@@ -66,15 +66,19 @@ varnish v1 -vcl+backend {
}
sub vcl_synth {
set resp.http.fail = p_test.parse(req.http.not);
set resp.http.parse =
p_test.parse({"{ a: 1, b: "hi there", c: true, d: false, "} +
{" e : null, f: [ 1, -2, 3], g: { "1": [], h: [ 7 ] } } "});
if (req.url == "/static") {
set resp.http.parse =
p_test.parse(
{"{ a: 1, b: "hi there", c: true, d: false, "} +
{" e : null, f: [ 1, -2, 3], g: { "1": [], h"} +
{": [ 7 ] } } "});
}
call extract;
}
} -start
client c1 {
txreq
txreq
-url "/static"
rxresp
expect resp.status == 200
expect resp.http.fail == false
...
...
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