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.
This commit is contained in:
parent
e7964eac2d
commit
6f6aed92b7
|
@ -19,8 +19,7 @@ server s1 {
|
||||||
|
|
||||||
rxreq
|
rxreq
|
||||||
expect req.url == "127.0.0.1:80"
|
expect req.url == "127.0.0.1:80"
|
||||||
txresp \
|
txresp -nolen
|
||||||
-hdr "Content-Length: 0"
|
|
||||||
recv 36000
|
recv 36000
|
||||||
send_n 1000 "0123456789abcdefghijklmnopqrstuvwxyz"
|
send_n 1000 "0123456789abcdefghijklmnopqrstuvwxyz"
|
||||||
barrier b1 sync
|
barrier b1 sync
|
||||||
|
@ -93,7 +92,7 @@ client c1 -connect ${h1_fe1_sock} {
|
||||||
expect resp.bodylen == 1048576
|
expect resp.bodylen == 1048576
|
||||||
|
|
||||||
txreq -method "CONNECT" -url "127.0.0.1:80" -nolen
|
txreq -method "CONNECT" -url "127.0.0.1:80" -nolen
|
||||||
rxresp
|
rxresp -no_obj
|
||||||
expect resp.status == 200
|
expect resp.status == 200
|
||||||
send_n 1000 "0123456789abcdefghijklmnopqrstuvwxyz"
|
send_n 1000 "0123456789abcdefghijklmnopqrstuvwxyz"
|
||||||
recv 36000
|
recv 36000
|
||||||
|
|
Loading…
Reference in New Issue