changeset 2565:6fd05978fd4b

- Just send a "Range: " request header if we do not want to start from zero, anyway.
author Ralf Ertzinger <ralf@skytale.net>
date Tue, 13 May 2008 20:07:10 +0200
parents b24eda79942b
children 12aa69e560b2
files src/neon/neon.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/neon/neon.c	Mon May 12 15:34:58 2008 +0300
+++ b/src/neon/neon.c	Tue May 13 20:07:10 2008 +0200
@@ -530,7 +530,9 @@
         handle->request = ne_request_create(handle->session, "GET", handle->purl->path);
     }
 
-    ne_print_request_header(handle->request, "Range", "bytes=%ld-", startbyte);
+    if (0 < startbyte) {
+        ne_print_request_header(handle->request, "Range", "bytes=%ld-", startbyte);
+    }
     ne_print_request_header(handle->request, "Icy-MetaData", "1");
 
     /*