svn commit: r184222 - head/lib/libfetch

Ruslan Ermilov ru at FreeBSD.org
Fri Oct 24 07:56:01 UTC 2008


Author: ru
Date: Fri Oct 24 07:56:01 2008
New Revision: 184222
URL: http://svn.freebsd.org/changeset/base/184222

Log:
  Don't fail mistakenly with -r when we already have the whole file.
  
  Reviewed by:	des

Modified:
  head/lib/libfetch/http.c

Modified: head/lib/libfetch/http.c
==============================================================================
--- head/lib/libfetch/http.c	Fri Oct 24 07:19:09 2008	(r184221)
+++ head/lib/libfetch/http.c	Fri Oct 24 07:56:01 2008	(r184222)
@@ -1064,6 +1064,7 @@ http_request(struct url *URL, const char
 			if (url->offset == size && url->length == 0) {
 				/* asked for 0 bytes; fake it */
 				offset = url->offset;
+				clength = -1;
 				conn->err = HTTP_OK;
 				break;
 			} else {


More information about the svn-src-head mailing list