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 {
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to