summaryrefslogtreecommitdiff
path: root/content/fetch.c
diff options
context:
space:
mode:
Diffstat (limited to 'content/fetch.c')
-rw-r--r--content/fetch.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/content/fetch.c b/content/fetch.c
index d1c3f0e07..642010fb3 100644
--- a/content/fetch.c
+++ b/content/fetch.c
@@ -1,5 +1,5 @@
/**
- * $Id: fetch.c,v 1.4 2003/04/09 21:57:09 bursa Exp $
+ * $Id: fetch.c,v 1.5 2003/04/15 17:53:00 bursa Exp $
*/
#include <assert.h>
@@ -191,8 +191,10 @@ void fetch_poll(void)
LOG(("CURLMSG_DONE, result %i", curl_msg->data.result));
/* inform the caller that the fetch is done */
- if (curl_msg->data.result == CURLE_OK)
+ if (curl_msg->data.result == CURLE_OK && f->had_headers)
f->callback(FETCH_FINISHED, f->p, 0, 0);
+ else if (curl_msg->data.result == CURLE_OK)
+ f->callback(FETCH_ERROR, f->p, "No data received", 0);
else if (curl_msg->data.result != CURLE_WRITE_ERROR)
f->callback(FETCH_ERROR, f->p, f->error_buffer, 0);