mirror of https://github.com/moparisthebest/curl
now writers the headers with the data->fwrite() function as well
This commit is contained in:
parent
570b4c3b59
commit
8629719e0e
|
@ -322,7 +322,7 @@ Transfer (struct UrlData *data,
|
||||||
/* obviously, the header is requested to be written to
|
/* obviously, the header is requested to be written to
|
||||||
this file: */
|
this file: */
|
||||||
if((p - data->headerbuff) !=
|
if((p - data->headerbuff) !=
|
||||||
fwrite (data->headerbuff, 1, p - data->headerbuff,
|
data->fwrite (data->headerbuff, 1, p - data->headerbuff,
|
||||||
data->writeheader)) {
|
data->writeheader)) {
|
||||||
failf (data, "Failed writing output");
|
failf (data, "Failed writing output");
|
||||||
return URG_WRITE_ERROR;
|
return URG_WRITE_ERROR;
|
||||||
|
@ -392,7 +392,8 @@ Transfer (struct UrlData *data,
|
||||||
}
|
}
|
||||||
if(data->writeheader) {
|
if(data->writeheader) {
|
||||||
/* the header is requested to be written to this file */
|
/* the header is requested to be written to this file */
|
||||||
if(hbuflen != fwrite (p, 1, hbuflen, data->writeheader)) {
|
if(hbuflen != data->fwrite (p, 1, hbuflen,
|
||||||
|
data->writeheader)) {
|
||||||
failf (data, "Failed writing output");
|
failf (data, "Failed writing output");
|
||||||
return URG_WRITE_ERROR;
|
return URG_WRITE_ERROR;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue