]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Tue, 12 Sep 2023 01:40:31 +0000 (03:40 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 12 Sep 2023 01:40:31 +0000 (03:40 +0200)
- please execute SQL command:
  "UPDATE instances SET command = 'redirect_target' WHERE command = 'fetch_generator';"
- yes, it is done during detection mode 'generator' but it was discovered as
  redirection target

fba/http/federation.py

index eeed806f729ff9e55c728e1eb7fadeeee12f08b2..5fb9608491c1c73daf053fe7e530f35735ba4762 100644 (file)
@@ -322,7 +322,7 @@ def fetch_generator_from_path(domain: str, path: str = "/") -> str:
         logger.debug("domain2='%s'", domain2)
         if not instances.is_registered(domain2):
             logger.info("components.netloc='%s' is not registered, adding ...", components.netloc)
-            fetch_instances(domain2, domain, None, "fetch_generator")
+            fetch_instances(domain2, domain, None, "redirect_target")
 
         message = f"Redirect from domain='{domain}' to response.url='{response.url}'"
         instances.set_last_error(domain, message)