[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Lynx-dev] adjusting the url redirect limit?
From: |
Thomas Dickey |
Subject: |
Re: [Lynx-dev] adjusting the url redirect limit? |
Date: |
Fri, 5 Oct 2018 20:18:04 -0400 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
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 <address@hidden>
https://invisible-island.net
ftp://ftp.invisible-island.net
signature.asc
Description: Digital signature