From: Christopher Faulet Date: Mon, 2 Oct 2023 06:11:19 +0000 (+0200) Subject: REGTESTS: filters: Don't set C-L header in the successful response to CONNECT X-Git-Tag: v2.9-dev7~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f6aed92b7be29399fb2cabb4fc92b61c51ff7d4;p=thirdparty%2Fhaproxy.git 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. --- 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