diff options
author | des <des@FreeBSD.org> | 2004-04-06 12:24:26 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2004-04-06 12:24:26 +0000 |
commit | 1a789b31d8a2e7ddaa8e412806628f8ae46b883a (patch) | |
tree | d6a5e5ae79ca3726856873bab3374ccd3ea24101 /usr.bin/fetch | |
parent | a7defb3546942e524634d31bce9515e5626f7889 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | usr.bin/fetch/fetch.c | 2 |
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; |