From f83c52007dde3fa3b243a0fe3ac6bb052b963b71 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Wed, 27 Jan 2021 18:10:17 -0700 Subject: gmi2email: avoid double slashes Seems some servers don't eliminate these themselves and can return "Not found". Signed-off-by: Sean Whitton --- gmi2email | 1 + 1 file changed, 1 insertion(+) diff --git a/gmi2email b/gmi2email index ed0fb28..1015328 100755 --- a/gmi2email +++ b/gmi2email @@ -211,6 +211,7 @@ sub gemini_fetch { if ($meta =~ "^text/gemini") { my @lines; if ($opts{abs_links}) { + $path =~ s{^/}{}; $authority =~ m{/$} or $authority .= "/"; $path =~ m{/$} or $path .= "/"; for (<$cl>) { -- cgit v1.2.3