Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/RMerl/asuswrt-merlin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladislav Grishenko <themiron@mail.ru>2016-12-09 22:45:05 +0300
committerVladislav Grishenko <themiron@mail.ru>2016-12-10 03:31:51 +0300
commit72aecb10195fe04af2739a1ec49a16118b8f7112 (patch)
treee2dbbe0f076460ef125accc69b6c1aee4d7b49f2
parentca9098466e4c90a2910c18f873fdc1559cfcdc5e (diff)
busybox: wget: don't error out on fully transferred file continue
-rw-r--r--release/src/router/busybox/networking/wget.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/release/src/router/busybox/networking/wget.c b/release/src/router/busybox/networking/wget.c
index 28c12540be..e21c4dfdcc 100644
--- a/release/src/router/busybox/networking/wget.c
+++ b/release/src/router/busybox/networking/wget.c
@@ -1109,6 +1109,13 @@ However, in real world it was observed that some web servers
case 302:
case 303:
break;
+ case 416: /* Requested Range Not Satisfiable */
+ if (G.beg_range != 0) {
+ G.content_len = 0;
+ G.got_clen = 1;
+ goto skip_response;
+ }
+ /* fall through */
case 206: /* Partial Content */
if (G.beg_range != 0)
/* "Range:..." worked. Good. */
@@ -1180,6 +1187,7 @@ However, in real world it was observed that some web servers
// if (status >= 300)
// bb_error_msg_and_die("bad redirection (no Location: header from server)");
+ skip_response:
/* For HTTP, data is pumped over the same connection */
dfp = sfp;
} else {