Commit ae29a70d authored by AlveElde's avatar AlveElde Committed by Poul-Henning Kamp

varnishtest: set -nolen on tx[req|resp] C-L or T-E

parent aac3538d
......@@ -13,7 +13,7 @@ varnish v1 -vsl_catchup
varnish v1 -expect client_req_400 == 1
client c1 {
txreq -method POST -hdr "Content-Length: 12" -bodylen 12
txreq -method POST -hdr "Content-Length: 12" -hdr "Content-Length: 12" -bodylen 12
rxresp
expect resp.status == 400
} -run
......
......@@ -786,6 +786,9 @@ http_tx_parse_args(char * const *av, struct vtclog *vl, struct http *hp,
} else if (!strcmp(*av, "-nohost")) {
nohost = 1;
} else if (!strcmp(*av, "-hdr")) {
if (!strncasecmp(av[1], "Content-Length:", 15) ||
!strncasecmp(av[1], "Transfer-Encoding:", 18))
nolen = 1;
if (!strncasecmp(av[1], "Host:", 5))
nohost = 1;
VSB_printf(hp->vsb, "%s%s", av[1], nl);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment