mirror of
https://github.com/curl/curl.git
synced 2026-07-26 07:47:33 +03:00
parent
81e1b1ec23
commit
1774dbd74c
6 changed files with 22 additions and 1 deletions
|
|
@ -871,7 +871,8 @@ static CURLcode single_transfer(struct GlobalConfig *global,
|
|||
if(config->headerfile) {
|
||||
/* open file for output: */
|
||||
if(strcmp(config->headerfile, "-")) {
|
||||
FILE *newfile = fopen(config->headerfile, "wb");
|
||||
FILE *newfile;
|
||||
newfile = fopen(config->headerfile, per->prev == NULL?"wb":"ab");
|
||||
if(!newfile) {
|
||||
warnf(config->global, "Failed to open %s\n", config->headerfile);
|
||||
result = CURLE_WRITE_ERROR;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue