[PATCH uclient 1/2] uclient-fetch: fetch only header in spider mode

2020-07-02 Thread Sungbo Eo
Since spider mode only checks if a file exists, we don't need to download the whole file. This also matches wget's behavior. Signed-off-by: Sungbo Eo --- v2: rebased --- uclient-fetch.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/uclient-fetch.c b/uclient

[OpenWrt-Devel] [PATCH uclient 1/2] uclient-fetch: fetch only header in spider mode

2020-01-06 Thread Sungbo Eo
Since spider mode only checks if a file exists, we don't need to download the whole file. This also matches wget's behavior. Signed-off-by: Sungbo Eo --- uclient-fetch.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/uclient-fetch.c b/uclient-fetch.c index 3