]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Mon, 11 Sep 2023 20:27:46 +0000 (22:27 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 11 Sep 2023 20:27:46 +0000 (22:27 +0200)
- some people think that CamelCase.Domain is something to be proud of
- truth is, that those upper-case characters are being lower-cased before a DNS
  server is been queried

fba/http/nodeinfo.py

index e18daff75e513381a5561be327e822ef79f8e353..5626812a29c776532d7408a0a456ec39c89b207b 100644 (file)
@@ -197,7 +197,7 @@ def fetch_wellknown_nodeinfo(domain: str) -> dict:
 
                 # Default is that 'href' has a complete URL, but some hosts don't send that
                 logger.debug("link[rel]='%s' matches niid='%s'", link["rel"], niid)
-                url = link["href"]
+                url = link["href"].lower()
                 components = urlparse(url)
 
                 logger.debug("components[%s]='%s'", type(components), components)