From: plugd Date: Fri, 6 May 2022 11:49:31 +0000 (+0200) Subject: Fixed handling of spartan urls in elpher-go. X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=commitdiff_plain;h=78c9ea5fddede2b7e9a14cf2ce5dd4f5b8f31056;p=elpher.git Fixed handling of spartan urls in elpher-go. --- diff --git a/elpher.el b/elpher.el index 42816c8..f582e45 100644 --- 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))