From 6f6aed92b7be29399fb2cabb4fc92b61c51ff7d4 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Mon, 2 Oct 2023 08:11:19 +0200 Subject: [PATCH] REGTESTS: filters: Don't set C-L header in the successful response to CONNECT in random-forwarding.vtc script, adding "Content-Lnegth; 0" header in the successful response to the CONNECT request is invalid but it may also lead to wrong check on the response. "rxresp" directive don"t handle CONNECT response. Thus "-no_obj" must be added instead, to be sure the payload won't be retrieved or expected. --- reg-tests/filters/random-forwarding.vtc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/reg-tests/filters/random-forwarding.vtc b/reg-tests/filters/random-forwarding.vtc index 87e29a6c2a..abb2bccfa4 100644 --- a/reg-tests/filters/random-forwarding.vtc +++ b/reg-tests/filters/random-forwarding.vtc @@ -19,8 +19,7 @@ server s1 { rxreq expect req.url == "127.0.0.1:80" - txresp \ - -hdr "Content-Length: 0" + txresp -nolen recv 36000 send_n 1000 "0123456789abcdefghijklmnopqrstuvwxyz" barrier b1 sync @@ -93,7 +92,7 @@ client c1 -connect ${h1_fe1_sock} { expect resp.bodylen == 1048576 txreq -method "CONNECT" -url "127.0.0.1:80" -nolen - rxresp + rxresp -no_obj expect resp.status == 200 send_n 1000 "0123456789abcdefghijklmnopqrstuvwxyz" recv 36000