wget: increase redirections limit
Some hosting services like sourceforge perform a lot of relocations before actually serving the file. Example of current limitation: busybox wget http://sourceforge.net/projects/fluxbox/files/fluxbox/1.3.7/fluxbox-1.3.7.tar.xz Connecting to sourceforge.net (216.105.38.13:80) Connecting to sourceforge.net (216.105.38.13:443) Connecting to sourceforge.net (216.105.38.13:443) Connecting to sourceforge.net (216.105.38.13:443) Connecting to downloads.sourceforge.net (216.105.38.13:443) wget: too many redirections Signed-off-by: David Demelier <markand@malikania.fr> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
7f89ebe18f
commit
4a9daf2b93
@ -1109,7 +1109,7 @@ static void download_one_url(const char *url)
|
|||||||
* We are not sure it exists on remote side */
|
* We are not sure it exists on remote side */
|
||||||
}
|
}
|
||||||
|
|
||||||
redir_limit = 5;
|
redir_limit = 16;
|
||||||
resolve_lsa:
|
resolve_lsa:
|
||||||
lsa = xhost2sockaddr(server.host, server.port);
|
lsa = xhost2sockaddr(server.host, server.port);
|
||||||
if (!(option_mask32 & WGET_OPT_QUIET)) {
|
if (!(option_mask32 & WGET_OPT_QUIET)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user