2017-09-14 10:04:20 +02:00
|
|
|
Index: wget-1.19.1/src/http.c
|
|
|
|
===================================================================
|
|
|
|
--- wget-1.19.1.orig/src/http.c
|
|
|
|
+++ wget-1.19.1/src/http.c
|
|
|
|
@@ -3818,6 +3818,12 @@ gethttp (const struct url *u, struct url
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-14 10:49:19 +02:00
|
|
|
+ // if (statcode == HTTP_STATUS_RANGE_NOT_SATISFIABLE)
|
2017-09-14 10:04:20 +02:00
|
|
|
+ {
|
2017-09-14 10:49:19 +02:00
|
|
|
+ fprintf (stderr, "hs->restval=%s\n", number_to_static_string(hs->restval));
|
|
|
|
+ fprintf (stderr, "contrange=%s\n", number_to_static_string(contrange));
|
|
|
|
+ fprintf (stderr, "contlen=%s\n\n", number_to_static_string(contlen));
|
2017-09-14 10:04:20 +02:00
|
|
|
+ }
|
|
|
|
if (statcode == HTTP_STATUS_RANGE_NOT_SATISFIABLE
|
|
|
|
|| (!opt.timestamping && hs->restval > 0 && statcode == HTTP_STATUS_OK
|
|
|
|
&& contrange == 0 && contlen >= 0 && hs->restval >= contlen))
|