From a723272145e163e9caafff119783f40363b08e5e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 4 Oct 2023 10:18:54 +0200 Subject: [PATCH] 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 --- fba/http/federation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5