mirror of
https://github.com/yusing/godoxy.git
synced 2026-01-11 22:30:47 +01:00
trim and convert alias and host to lowercase
This commit is contained in:
@@ -233,6 +233,9 @@ func (r *Route) UseAccessLog() bool {
|
||||
}
|
||||
|
||||
func (r *Route) Finalize() {
|
||||
r.Alias = strings.ToLower(strings.TrimSpace(r.Alias))
|
||||
r.Host = strings.ToLower(strings.TrimSpace(r.Host))
|
||||
|
||||
isDocker := r.Container != nil
|
||||
cont := r.Container
|
||||
|
||||
|
||||
Reference in New Issue
Block a user