[master] 9284af89e From VTEST:
Poul-Henning Kamp
phk at FreeBSD.org
Mon Apr 8 07:51:05 UTC 2019
commit 9284af89e4137da6e8f39a351c550c310e391f94
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Apr 8 07:46:57 2019 +0000
From VTEST:
Missing HEAD method usage flag reset between two requests.
If an HTTP client request with a method different from HEAD followed
another one with HEAD method, the former was still flagged as being
using the HEAD method because of a missing HEAD method usage flag
reset before building an HTTP client request.
Author: Frédéric Lécaille <flecaille at haproxy.com>
diff --git a/bin/varnishtest/vtc_http.c b/bin/varnishtest/vtc_http.c
index 0c772f50d..a32b0f37b 100644
--- a/bin/varnishtest/vtc_http.c
+++ b/bin/varnishtest/vtc_http.c
@@ -1275,6 +1275,7 @@ cmd_http_txreq(CMD_ARGS)
VSB_clear(hp->vsb);
+ hp->head_method = 0;
for (; *av != NULL; av++) {
if (!strcmp(*av, "-url")) {
url = av[1];
More information about the varnish-commit
mailing list