Skip to content

Commit

Permalink
help legacy curl help us
Browse files Browse the repository at this point in the history
  • Loading branch information
gquintard committed Apr 2, 2024
1 parent a4519dc commit 66dce1a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test04.vtc
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ process p1 {
LM=$(curl -o /dev/null -sqw '%header{last-modified}' http://${v1_addr}:${v1_port}/foo)
echo $LM
test -n "$LM"
curl -o /dev/null -v http://${v1_addr}:${v1_port}/foo
ETAG=$(curl -o /dev/null -sqw '%header{etag}' http://${v1_addr}:${v1_port}/foo)
ETAG=$(curl -I -sqw '%header{etag}' http://${v1_addr}:${v1_port}/foo | grep -i ^etag: | cut -d: -f2- | sed 's/^ *\(.*\).*/\1/' | tr -d '\r')
test -n "$ETAG"

tc() {
Expand Down

0 comments on commit 66dce1a

Please sign in to comment.