1
0
mirror of https://github.com/axllent/mailpit.git synced 2024-12-26 22:56:43 +02:00

Use path.Join() instead of url.JoinPath() for < 1.19 compatibility

This commit is contained in:
Ralph Slooten 2022-10-31 22:22:02 +13:00
parent d229b34d98
commit 1dfadda07e

View File

@ -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