Skip to content

Commit

Permalink
varnishtest: Strict comparison of HTTP components
Browse files Browse the repository at this point in the history
  • Loading branch information
dridi committed Jul 16, 2021
1 parent cc6002b commit fce7497
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/varnishtest/vtc_http.c
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,7 @@ cmd_http_txreq(CMD_ARGS)
} else if (!strcmp(*av, "-method") ||
!strcmp(*av, "-req")) {
req = av[1];
hp->head_method = !strcasecmp(av[1], "HEAD") ;
hp->head_method = !strcmp(av[1], "HEAD") ;
av++;
} else if (!hp->sfd && !strcmp(*av, "-up")) {
up = av[1];
Expand All @@ -1216,7 +1216,7 @@ cmd_http_txreq(CMD_ARGS)
"Upgrade: h2c%s"
"HTTP2-Settings: %s%s", nl, nl, up, nl);

nohost = strcasecmp(proto, "HTTP/1.1") != 0;
nohost = strcmp(proto, "HTTP/1.1") != 0;
av = http_tx_parse_args(av, vl, hp, NULL, nohost);
if (*av != NULL)
vtc_fatal(hp->vl, "Unknown http txreq spec: %s\n", *av);
Expand Down

0 comments on commit fce7497

Please sign in to comment.