[7.4] 13ae7d9ed vtc: Check the correct protected headers

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Thu Sep 21 04:54:08 UTC 2023


commit 13ae7d9edcd90ba2e8019ba59a73406c6f441dbd
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Thu Sep 21 06:52:11 2023 +0200

    vtc: Check the correct protected headers
    
    Refs #3984

diff --git a/bin/varnishtest/tests/r03984.vtc b/bin/varnishtest/tests/r03984.vtc
index 3ce6975ef..4285760da 100644
--- a/bin/varnishtest/tests/r03984.vtc
+++ b/bin/varnishtest/tests/r03984.vtc
@@ -4,16 +4,16 @@ varnish v1 -vcl {
 	backend be none;
 
 	sub access_req {
-		if (req.http.content-length || req.http.content-encoding) {}
+		if (req.http.content-length || req.http.transfer-encoding) {}
 	}
 	sub access_resp {
-		if (resp.http.content-length || resp.http.content-encoding) {}
+		if (resp.http.content-length || resp.http.transfer-encoding) {}
 	}
 	sub access_bereq {
-		if (bereq.http.content-length || bereq.http.content-encoding) {}
+		if (bereq.http.content-length || bereq.http.transfer-encoding) {}
 	}
 	sub access_beresp {
-		if (beresp.http.content-length || beresp.http.content-encoding) {}
+		if (beresp.http.content-length || beresp.http.transfer-encoding) {}
 	}
 
 	sub vcl_recv {


More information about the varnish-commit mailing list