On Fri, Oct 05, 2018 at 07:23:29PM -0400, Karen Lewellen wrote:
> Hi folks,
> currently it is 10 redirections.
> Can this number be increased?
It's a constant, implemented in HTAccess.c like this:
/*
* Don't exceed the redirection_attempts limit. - FM
*/
if (++redirection_attempts > 10) {
HTAlert(TOO_MANY_REDIRECTIONS);
redirection_attempts = 0;
FREE(use_this_url_instead);
return NO;
}
...and
/*
* Make sure some yoyo doesn't send us 'round in circles with redirecting
* URLs that point back to themselves. We'll set the original Lynx limit
* of 10 redirections per requested URL from a user, because the HTTP/1.1
* will no longer specify a restriction to 5, but will leave it up to the
* browser's discretion, in deference to Microsoft. - FM
*/
if (redirection_attempts > 10) {
redirection_attempts = 0;
HTAlert(TOO_MANY_REDIRECTIONS);
return NO;
}
Someone might want to propose a configuration patch, e.g., to allow
lynx.cfg to modify that limit.
See these old mentions:
https://lists.debian.org/debian-user/1999/08/msg01165.html
https://lists.gnu.org/archive/html/lynx-dev/1998-08/msg00809.html
and this:
https://github.com/whatwg/fetch/issues/576
--
Thomas E. Dickey
https://invisible-island.net
ftp://ftp.invisible-island.net
signature.asc
Description: Digital signature
___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev