Fixed handling of spartan urls in elpher-go.
authorplugd <plugd@thelambdalab.xyz>
Fri, 6 May 2022 11:49:31 +0000 (13:49 +0200)
committerplugd <plugd@thelambdalab.xyz>
Fri, 6 May 2022 11:49:31 +0000 (13:49 +0200)
elpher.el

index 42816c8..f582e45 100644 (file)
--- a/elpher.el
+++ b/elpher.el
@@ -363,8 +363,8 @@ is not explicitly given."
               (when (or (equal (url-filename url) "")
                         (equal (url-filename url) "/"))
                 (setf (url-filename url) "/1")))
-            (when (equal "gemini" (url-type url))
-              ;; Gemini defaults
+            (when (member (url-type url) '("gemini" "spartan"))
+              ;; Gemini and Spartan defaults
               (if (equal (url-filename url) "")
                   (setf (url-filename url) "/"))))
           (elpher-remove-redundant-ports url))