]> git.ipfire.org Git - thirdparty/curl.git/commit
curl: allow both --etag-compare and --etag-save with same file name
authorKwon-Young Choi <kwon-young.choi@hotmail.fr>
Fri, 3 Apr 2020 18:51:14 +0000 (20:51 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 4 Apr 2020 23:07:52 +0000 (01:07 +0200)
commita448a4ce2615373fc63818afede79550f2ca6a14
treed3af19370fe7b67e674cffc12059587c6f5289c8
parent23a870f2fd041278762ecf819cd1467019588c58
curl: allow both --etag-compare and --etag-save with same file name

This change inverse the order of processing for the --etag-compare and
--etag-save option to process first --etag-compare. This in turn allows
to use the same file name to compare and save an etag.

The original behavior of not failing if the etag file does not exists is
conserved.

Fixes #5179
Closes #5180
src/tool_operate.c
tests/data/Makefile.inc
tests/data/test344 [new file with mode: 0644]
tests/data/test345 [new file with mode: 0644]