summaryrefslogtreecommitdiffstats
path: root/usr.bin/fetch/fetch.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2004-04-06 12:24:26 +0000
committerdes <des@FreeBSD.org>2004-04-06 12:24:26 +0000
commit1a789b31d8a2e7ddaa8e412806628f8ae46b883a (patch)
treed6a5e5ae79ca3726856873bab3374ccd3ea24101 /usr.bin/fetch/fetch.c
parenta7defb3546942e524634d31bce9515e5626f7889 (diff)
downloadFreeBSD-src-1a789b31d8a2e7ddaa8e412806628f8ae46b883a.zip
FreeBSD-src-1a789b31d8a2e7ddaa8e412806628f8ae46b883a.tar.gz
Workaround for servers that ignore byte ranges when using chunked
encoding. MFC after: 3 days
Diffstat (limited to 'usr.bin/fetch/fetch.c')
-rw-r--r--usr.bin/fetch/fetch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/fetch/fetch.c b/usr.bin/fetch/fetch.c
index 4eff618..051b895 100644
--- a/usr.bin/fetch/fetch.c
+++ b/usr.bin/fetch/fetch.c
@@ -486,7 +486,7 @@ fetch(char *URL, const char *path)
"does not match remote", path);
goto failure_keep;
}
- } else {
+ } else if (us.size != -1) {
if (us.size == sb.st_size)
/* nothing to do */
goto success;
OpenPOWER on IntegriCloud