[4.1] 02df97a Fix build after recent merge

Federico G. Schwindt fgsch at lodoss.net
Sat Aug 13 15:41:06 CEST 2016


commit 02df97a710d0b3c1814d2300d23f3d64d8699d2a
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Sat Aug 13 14:34:05 2016 +0100

    Fix build after recent merge
    
    There are some changes in master that need tlc before backporting.
    This is one of them.

diff --git a/bin/varnishtest/tests/r01881.vtc b/bin/varnishtest/tests/r01881.vtc
index 5c3ab4d..2e506e1 100644
--- a/bin/varnishtest/tests/r01881.vtc
+++ b/bin/varnishtest/tests/r01881.vtc
@@ -3,15 +3,19 @@ varnishtest "Test cached request bodies can be piped"
 server s1 {
 	rxreq
 	expect req.bodylen == 6
-	expect req.http.foo == "true"
+	expect req.http.foo == "1"
 	txresp
 } -start
 
-varnish v1 -vcl+backend {
-	import std;
-
+varnish v1 -cliok "param.set vcc_allow_inline_c true" -vcl+backend {
 	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);
 	}
 } -start



More information about the varnish-commit mailing list