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:
parent
d229b34d98
commit
1dfadda07e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user