mirror of
https://github.com/curl/curl.git
synced 2026-08-04 09:30:03 +03:00
etag: allow both --etag-compare and --etag-save in same cmdline
Fixes #4669 Closes #4678
This commit is contained in:
parent
bf24e0f928
commit
9ea769e15f
3 changed files with 62 additions and 11 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue