diff options
author | Frederick Muriuki Muriithi | 2023-11-28 10:10:04 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-11-28 10:10:04 +0300 |
commit | fc479f938af90f45cd085063b4d0d237141636e8 (patch) | |
tree | b4a6b66332e51fe0d1c13d7b3e35d5dfb5d5751c | |
parent | d10d2bb5d58d8f93ee76f38c6238d11998b21daf (diff) | |
download | gn-gemtext-fc479f938af90f45cd085063b4d0d237141636e8.tar.gz |
close issue: buggy use of `urllib.parse.urljoin`
-rw-r--r-- | issues/buggy-use-of-urljoin.gmi | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/issues/buggy-use-of-urljoin.gmi b/issues/buggy-use-of-urljoin.gmi index fac6597..b6e27d6 100644 --- a/issues/buggy-use-of-urljoin.gmi +++ b/issues/buggy-use-of-urljoin.gmi @@ -5,11 +5,15 @@ * type: bug * priority: low * assigned: fredm -* status: pending +* status: closed, completed * keywords: url ## Description +This issue was circumvented by ensuring all the configuration settings that are URIs end with a trailing slash. This ensures that the function can continue working as documented and expected. + +---- + The => https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urljoin `urllib.parse.urljoin` function will extract the base url from the first argument, and will lead to subtle errors if the configurations are not set up correctly to include the trailing slash. |