diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-12-17 12:51:51 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-12-17 16:28:03 +0100 |
commit | 697689eb0bcafdd44ad2c0421def65c2746361c5 (patch) | |
tree | a70f98b12a93705bb90715510b84b8811519dfb9 /src/tool_operate.c | |
parent | d8a9de62034cff6153ab78cff3e3ae30f786ec39 (diff) | |
download | curl-bagder/curl-overwrite-on-content-disposition.tar.gz |
curl -J: do not append to the destination filebagder/curl-overwrite-on-content-disposition
Fixes #3380
Diffstat (limited to 'src/tool_operate.c')
-rw-r--r-- | src/tool_operate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c index e53a9d867..429e9cf46 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -1583,7 +1583,7 @@ static CURLcode operate_do(struct GlobalConfig *global, /* do not create (or even overwrite) the file in case we get no data because of unmet condition */ curl_easy_getinfo(curl, CURLINFO_CONDITION_UNMET, &cond_unmet); - if(!cond_unmet && !tool_create_output_file(&outs, FALSE)) + if(!cond_unmet && !tool_create_output_file(&outs)) result = CURLE_WRITE_ERROR; } |