From e6e7820cab4a5a75179c26f922d1eeb81a475a41 Mon Sep 17 00:00:00 2001 From: Mat Kelly Date: Wed, 17 Apr 2024 14:55:46 -0400 Subject: [PATCH] Handle spaces in URI-R Co-authored-by: Mat Kelly Co-authored-by: Sawood Alam --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index c839ab2..88ba247 100644 --- a/main.go +++ b/main.go @@ -477,6 +477,7 @@ func parseURI(uri string) (urir string, err error) { logError.Printf("Error Unescaping path (%s): %v", uri, err) return } + uescd = strings.ReplaceAll(uescd, " ", "%20") if !regs["isprtcl"].MatchString(uescd) { uescd = "http://" + uescd }