This commit is contained in:
parent
b633fd5dc9
commit
b25a5037cb
@ -2,14 +2,10 @@ Index: wget-1.19.1/src/http.c
|
|||||||
===================================================================
|
===================================================================
|
||||||
--- wget-1.19.1.orig/src/http.c
|
--- wget-1.19.1.orig/src/http.c
|
||||||
+++ wget-1.19.1/src/http.c
|
+++ wget-1.19.1/src/http.c
|
||||||
@@ -3818,6 +3818,19 @@ gethttp (const struct url *u, struct url
|
@@ -3819,6 +3819,16 @@ gethttp (const struct url *u, struct url
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
+ fprintf(stderr, " hs->restval=%s\n", number_to_static_string(hs->restval));
|
if (statcode == HTTP_STATUS_RANGE_NOT_SATISFIABLE
|
||||||
+ fprintf(stderr, " contlen=%s\n", number_to_static_string(contlen));
|
|
||||||
+ fprintf(stderr, " contrange=%s\n", number_to_static_string(contrange));
|
|
||||||
+ if (statcode == HTTP_STATUS_RANGE_NOT_SATISFIABLE
|
|
||||||
+ && hs->restval < (contlen + contrange))
|
+ && hs->restval < (contlen + contrange))
|
||||||
+ {
|
+ {
|
||||||
+ /* The file was not completely downloaded,
|
+ /* The file was not completely downloaded,
|
||||||
@ -19,6 +15,7 @@ Index: wget-1.19.1/src/http.c
|
|||||||
+ retval = RANGEERR;
|
+ retval = RANGEERR;
|
||||||
+ goto cleanup;
|
+ goto cleanup;
|
||||||
+ }
|
+ }
|
||||||
if (statcode == HTTP_STATUS_RANGE_NOT_SATISFIABLE
|
+ if (statcode == HTTP_STATUS_RANGE_NOT_SATISFIABLE
|
||||||
|| (!opt.timestamping && hs->restval > 0 && statcode == HTTP_STATUS_OK
|
|| (!opt.timestamping && hs->restval > 0 && statcode == HTTP_STATUS_OK
|
||||||
&& contrange == 0 && contlen >= 0 && hs->restval >= contlen))
|
&& contrange == 0 && contlen >= 0 && hs->restval >= contlen))
|
||||||
|
{
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 14 09:58:51 UTC 2017 - josef.moellers@suse.com
|
||||||
|
|
||||||
|
- If a server responds with 416 Requested Range Not Satisfiable
|
||||||
|
but the file was not downloaded completely, do not
|
||||||
|
claim that it was.
|
||||||
|
[boo#1058204, wget-416-but-file-not-complete.patch]
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Mar 7 13:40:10 UTC 2017 - josef.moellers@suse.com
|
Tue Mar 7 13:40:10 UTC 2017 - josef.moellers@suse.com
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user