From 1dfadda07e59ffbf0205d8122240743327b6af0a Mon Sep 17 00:00:00 2001 From: Ralph Slooten Date: Mon, 31 Oct 2022 22:22:02 +1300 Subject: [PATCH] Use path.Join() instead of url.JoinPath() for < 1.19 compatibility --- config/config.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/config/config.go b/config/config.go index 639b2ec..cc5d84a 100644 --- a/config/config.go +++ b/config/config.go @@ -3,8 +3,8 @@ package config import ( "errors" "fmt" - "net/url" "os" + "path" "path/filepath" "regexp" "strings" @@ -148,10 +148,7 @@ func VerifyConfig() error { return fmt.Errorf("Webroot cannot contain spaces (%s)", Webroot) } - s, err := url.JoinPath("/", Webroot, "/") - if err != nil { - return err - } + s := path.Join("/", Webroot, "/") Webroot = s return nil