changeset 498:6779a84fbf10 trunk

[svn] - ignore CURLE_PARTIAL_FILE, as this can happen in some cases and is described as normal in the curl documentation.
author nenolod
date Sun, 21 Jan 2007 20:09:18 -0800
parents 1da75c7d37a3
children ef7ceb6b183c
files ChangeLog src/curl/curl.c
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Jan 21 19:55:50 2007 -0800
+++ b/ChangeLog	Sun Jan 21 20:09:18 2007 -0800
@@ -1,3 +1,11 @@
+2007-01-22 03:55:50 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [1080]
+  - decrement handle->rd_abs when we do an ungetc.
+  
+  trunk/src/curl/curl.c |    5 ++++-
+  1 file changed, 4 insertions(+), 1 deletion(-)
+
+
 2007-01-22 03:48:38 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [1078]
   - enforce UINT in charstack
--- a/src/curl/curl.c	Sun Jan 21 19:55:50 2007 -0800
+++ b/src/curl/curl.c	Sun Jan 21 20:09:18 2007 -0800
@@ -405,7 +405,8 @@
   // We get CURLE_GOT_NOTHING if we send a HEAD request to a shoutcast server.
   // We get CURLE_HTTP_RANGE_ERROR if we try to use range with shoutcast.
   if (result != CURLE_OK && result != CURLE_WRITE_ERROR && 
-      result != CURLE_GOT_NOTHING && result != CURLE_HTTP_RANGE_ERROR)
+      result != CURLE_GOT_NOTHING && result != CURLE_HTTP_RANGE_ERROR &&
+      result != CURLE_PARTIAL_FILE)
     {
       g_print("Got curl error %d\n", result);
       handle->failed = 1;