fix when prefix has '/' and prefix is not end with '/' (#684)
This commit is contained in:
parent
e0c2099e91
commit
14d8d80b86
@ -135,7 +135,7 @@ func ParseOptions(args []string) (Options, error) {
|
||||
opts.SSLMode = ""
|
||||
}
|
||||
|
||||
if opts.Prefix != "" && !strings.Contains(opts.Prefix, "/") {
|
||||
if opts.Prefix != "" && !strings.HasSuffix(opts.Prefix, "/") {
|
||||
opts.Prefix = opts.Prefix + "/"
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user