Commit 02df97a7 authored by Federico G. Schwindt's avatar Federico G. Schwindt

Fix build after recent merge

There are some changes in master that need tlc before backporting.
This is one of them.
parent acc91cc6
...@@ -3,15 +3,19 @@ varnishtest "Test cached request bodies can be piped" ...@@ -3,15 +3,19 @@ varnishtest "Test cached request bodies can be piped"
server s1 { server s1 {
rxreq rxreq
expect req.bodylen == 6 expect req.bodylen == 6
expect req.http.foo == "true" expect req.http.foo == "1"
txresp txresp
} -start } -start
varnish v1 -vcl+backend { varnish v1 -cliok "param.set vcc_allow_inline_c true" -vcl+backend {
import std;
sub vcl_recv { sub vcl_recv {
set req.http.foo = std.cache_req_body(10KB); C{
const struct gethdr_s HDR_REQ_foo =
{ HDR_REQ, "\04foo:"};
VRT_SetHdr(ctx, &HDR_REQ_foo,
VRT_INT_string(ctx, VRT_CacheReqBody(ctx, 10240) != -1),
vrt_magic_string_end);
}C
return (pipe); return (pipe);
} }
} -start } -start
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment