etag: allow both --etag-compare and --etag-save in same cmdline

Fixes #4669
Closes #4678
This commit is contained in:
Daniel Stenberg 2019-12-05 16:57:40 +01:00
parent bf24e0f928
commit 9ea769e15f
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 62 additions and 11 deletions

View file

@ -889,16 +889,6 @@ static CURLcode single_transfer(struct GlobalConfig *global,
}
}
/* disallowing simultaneous use of --etag-save and --etag-compare */
if(config->etag_save_file && config->etag_compare_file) {
warnf(
config->global,
"Cannot use --etag-save and --etag-compare at the same time\n");
result = CURLE_UNKNOWN_OPTION;
break;
}
/* --etag-save */
etag_save = &per->etag_save;
etag_save->stream = stdout;