]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTESTS: Never reuse server connection in http-messaging/truncated.vtc
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 17 Oct 2024 12:38:18 +0000 (14:38 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 17 Oct 2024 12:44:01 +0000 (14:44 +0200)
A "Connection: close" header is added to responses to avoid any connection
reuse. This should avoid errors on the client side.

reg-tests/http-messaging/truncated.vtc

index 7f262d75dc27b92e2f7987666c65afe18f033dea..e674b87268ecbd3288766dbd9a7961cbccb03275 100644 (file)
@@ -7,7 +7,9 @@ server s1 {
        txresp \
          -status 200 \
          -nolen \
-         -hdr "Transfer-encoding: chunked"
+         -hdr "Transfer-encoding: chunked" \
+         -hdr "Connection: close"
+
        #  -bodylen 16300
        #chunkedlen 16300
        #delay 0.05