mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-19 20:32:35 +02:00
trim and convert alias and host to lowercase
This commit is contained in:
parent
d5c0e62be1
commit
05cbf99237
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue