From: Roland Häder Date: Wed, 4 Oct 2023 08:18:54 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a723272145e163e9caafff119783f40363b08e5e;p=fba.git Continued: - some people made a website which redirected to other redirect-only domains, e.g. start with 'social.golangengine.de' and you see what I mean - if fetch_instances() is used here, it will cause a permanent redirect and later a stackoverflow --- diff --git a/fba/http/federation.py b/fba/http/federation.py index 2156690..3d6f57c 100644 --- a/fba/http/federation.py +++ b/fba/http/federation.py @@ -325,7 +325,7 @@ def fetch_generator_from_path(domain: str, path: str = "/") -> str: return None elif not instances.is_registered(domain2): logger.info("components.netloc='%s' is not registered, adding ...", components.netloc) - fetch_instances(domain2, domain, None, "redirect_target") + instances.add(domain2, domain, "redirect_target") message = f"Redirect from domain='{domain}' to response.url='{response.url}'" instances.set_last_error(domain, message)