From dba8cbf61b2fcbdb8dcd4289f74b450b4c7a561b Mon Sep 17 00:00:00 2001 From: Autumn! <86073772+autumnull@users.noreply.github.com> Date: Thu, 13 Oct 2022 00:58:31 +0100 Subject: [PATCH] URL no longer escaped and unescaped during normalization (#324) --- client/url.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/client/url.go b/client/url.go index ac94dd0..5f7f3c4 100644 --- a/client/url.go +++ b/client/url.go @@ -47,11 +47,6 @@ func normalizeURL(u string) (*url.URL, string) { // gemini://example.com -> gemini://example.com/ if parsed.Path == "" { parsed.Path = "/" - } else { - // Decode and re-encode path - // This removes needless encoding, like that of ASCII chars - // And encodes anything that wasn't but should've been - parsed.RawPath = strings.ReplaceAll(url.PathEscape(parsed.Path), "%2F", "/") } // Do the same to the query string