From 1a789b31d8a2e7ddaa8e412806628f8ae46b883a Mon Sep 17 00:00:00 2001 From: des Date: Tue, 6 Apr 2004 12:24:26 +0000 Subject: Workaround for servers that ignore byte ranges when using chunked encoding. MFC after: 3 days --- usr.bin/fetch/fetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin/fetch/fetch.c') 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; -- cgit v1.1