mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-24 09:48:49 +02:00
rules: remove the requirement of "path must start with /"
This commit is contained in:
@@ -96,9 +96,6 @@ func validateURLPath(args []string) (any, E.Error) {
|
||||
if trailingSlash {
|
||||
p += "/"
|
||||
}
|
||||
if p[0] != '/' {
|
||||
return nil, ErrInvalidArguments.Withf("must start with /")
|
||||
}
|
||||
return p, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user