Date: Fri, 24 Oct 2008 13:23:54 +0000 (UTC) From: Ruslan Ermilov <ru@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r184225 - stable/7/lib/libfetch Message-ID: <200810241323.m9ODNsdU090931@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ru Date: Fri Oct 24 13:23:54 2008 New Revision: 184225 URL: http://svn.freebsd.org/changeset/base/184225 Log: Don't fail mistakenly with -r when we already have the whole file. Approved by: re (kib) Modified: stable/7/lib/libfetch/ (props changed) stable/7/lib/libfetch/http.c Modified: stable/7/lib/libfetch/http.c ============================================================================== --- stable/7/lib/libfetch/http.c Fri Oct 24 07:58:38 2008 (r184224) +++ stable/7/lib/libfetch/http.c Fri Oct 24 13:23:54 2008 (r184225) @@ -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?200810241323.m9ODNsdU090931>