aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-03-16 11:38:32 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-03-16 11:38:32 +0000
commit8629719e0e032d35d4d46fd018ca2f85e2f334fe (patch)
tree55aeb2ec7cee725a63262009ab4ad69943034822
parent570b4c3b596f367dc2495fd7a64937fb894758d1 (diff)
now writers the headers with the data->fwrite() function as well
-rw-r--r--lib/download.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/download.c b/lib/download.c
index 68e6f308a..055217c01 100644
--- a/lib/download.c
+++ b/lib/download.c
@@ -322,8 +322,8 @@ Transfer (struct UrlData *data,
/* obviously, the header is requested to be written to
this file: */
if((p - data->headerbuff) !=
- fwrite (data->headerbuff, 1, p - data->headerbuff,
- data->writeheader)) {
+ data->fwrite (data->headerbuff, 1, p - data->headerbuff,
+ data->writeheader)) {
failf (data, "Failed writing output");
return URG_WRITE_ERROR;
}
@@ -392,7 +392,8 @@ Transfer (struct UrlData *data,
}
if(data->writeheader) {
/* 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");
return URG_WRITE_ERROR;
}