Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Oct 2008 07:56:01 +0000 (UTC)
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r184222 - head/lib/libfetch
Message-ID:  <200810240756.m9O7u1Ws084049@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810240756.m9O7u1Ws084049>