changeset 1926:a1ed9f7cb4cc

- Return -1 from fsize() on unknown content length
author Ralf Ertzinger <ralf@skytale.net>
date Mon, 01 Oct 2007 10:39:03 +0200
parents 2662c3a11f9f
children 64bcd7c9c705 5638651b7b3d e54d72373503
files src/neon/neon.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/neon/neon.c	Sun Sep 30 22:19:11 2007 +0200
+++ b/src/neon/neon.c	Mon Oct 01 10:39:03 2007 +0200
@@ -1277,7 +1277,7 @@
 
     if (-1 == h->content_length) {
         _DEBUG("Unknown content length");
-        _LEAVE 0;
+        _LEAVE -1;
     }
 
     _LEAVE (h->content_start + h->content_length);