mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 04:42:33 +02:00
trim and convert alias and host to lowercase
This commit is contained in:
parent
651a7cf83e
commit
8eef7db1c6
1 changed files with 3 additions and 0 deletions
|
@ -247,6 +247,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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue