From 151c30f50ea6b9ce3f18da1b63de13349c8ef01e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 11 Sep 2023 22:27:46 +0200 Subject: [PATCH] Continued: - 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fba/http/nodeinfo.py b/fba/http/nodeinfo.py index e18daff..5626812 100644 --- a/fba/http/nodeinfo.py +++ b/fba/http/nodeinfo.py @@ -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) -- 2.39.5