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
390fa49f
Commit
390fa49f
authored
May 10, 2012
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://git.varnish-cache.org/git/varnish-cache
parents
9efa2b00
5b3e41b4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
7 deletions
+27
-7
r01134.vtc
bin/varnishtest/tests/r01134.vtc
+19
-0
vcc_expr.c
lib/libvcl/vcc_expr.c
+3
-1
vmod_std.c
lib/libvmod_std/vmod_std.c
+5
-6
No files found.
bin/varnishtest/tests/r01134.vtc
0 → 100644
View file @
390fa49f
varnishtest "vcc const/non-const tostring conversion - bug 1134"
server s1 {
rxreq
txresp
} -start
varnish v1 -vcl+backend {
sub vcl_recv {
set req.http.x-test = "Test " + 1;
}
} -start
client c1 {
txreq
rxresp
expect resp.status == 200
} -run
lib/libvcl/vcc_expr.c
View file @
390fa49f
...
...
@@ -434,8 +434,10 @@ vcc_expr_tostring(struct expr **e, enum var_type fmt)
case
TIME
:
p
=
"VRT_time_string(sp,
\v
1)"
;
break
;
default:
break
;
}
if
(
p
!=
NULL
)
if
(
p
!=
NULL
)
{
*
e
=
vcc_expr_edit
(
fmt
,
p
,
*
e
,
NULL
);
(
*
e
)
->
constant
=
0
;
}
}
/*--------------------------------------------------------------------
...
...
lib/libvmod_std/vmod_std.c
View file @
390fa49f
...
...
@@ -147,19 +147,18 @@ vmod_random(struct sess *sp, double lo, double hi)
void
__match_proto__
()
vmod_log
(
struct
sess
*
sp
,
const
char
*
fmt
,
...)
{
char
*
p
;
unsigned
u
;
va_list
ap
;
txt
t
;
u
=
WS_Reserve
(
sp
->
req
->
ws
,
0
);
p
=
sp
->
req
->
ws
->
f
;
t
.
b
=
sp
->
req
->
ws
->
f
;
va_start
(
ap
,
fmt
);
p
=
VRT_StringList
(
p
,
u
,
fmt
,
ap
);
t
.
e
=
VRT_StringList
(
t
.
b
,
u
,
fmt
,
ap
);
va_end
(
ap
);
if
(
p
!=
NULL
)
{
t
.
b
=
p
;
t
.
e
=
strchr
(
p
,
'\0'
)
;
if
(
t
.
e
!=
NULL
)
{
assert
(
t
.
e
>
t
.
b
)
;
t
.
e
--
;
VSLbt
(
sp
->
req
->
vsl
,
SLT_VCL_Log
,
t
);
}
WS_Release
(
sp
->
req
->
ws
,
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