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
8a1948fa
Commit
8a1948fa
authored
May 07, 2021
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BLOBs have a .tostring now, but test other type which do not.
parent
ed278561
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
v00020.vtc
bin/varnishtest/tests/v00020.vtc
+4
-0
vcc_expr.c
lib/libvcc/vcc_expr.c
+3
-9
No files found.
bin/varnishtest/tests/v00020.vtc
View file @
8a1948fa
...
...
@@ -388,6 +388,10 @@ varnish v1 -errvcl {Symbol 'acl' has wrong type (reserved), expected acl:} {
sub vcl_recv { if (client.ip ~ acl) {} }
}
varnish v1 -errvcl {Cannot convert HTTP to STRING} {
sub vcl_synth { set resp.http.foo = resp; }
}
server s1 {
rxreq
txresp -hdr "bar: X"
...
...
lib/libvcc/vcc_expr.c
View file @
8a1948fa
...
...
@@ -288,15 +288,9 @@ vcc_expr_tostring(struct vcc *tl, struct expr **e, vcc_type_t fmt)
(
*
e
)
->
constant
=
constant
;
(
*
e
)
->
nstr
=
1
;
}
else
{
if
((
*
e
)
->
fmt
==
BLOB
)
VSB_cat
(
tl
->
sb
,
"Wrong use of BLOB value.
\n
"
"BLOBs can only be used as arguments to VMOD"
" functions.
\n
"
);
else
VSB_printf
(
tl
->
sb
,
"Cannot convert %s to STRING.
\n
"
,
vcc_utype
((
*
e
)
->
fmt
));
VSB_printf
(
tl
->
sb
,
"Cannot convert %s to STRING.
\n
"
,
vcc_utype
((
*
e
)
->
fmt
));
vcc_ErrWhere2
(
tl
,
(
*
e
)
->
t1
,
tl
->
t
);
}
}
...
...
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