From 09b1ede5a3fe5c37e34fe1c13780536f30297806 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Tue, 15 Apr 2003 17:53:00 +0000 Subject: [project @ 2003-04-15 17:53:00 by bursa] Inline images and related. svn path=/import/netsurf/; revision=125 --- content/fetch.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'content/fetch.c') 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 @@ -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); -- cgit v1.2.3