This commit is contained in:
刘河
2019-03-20 13:47:25 +08:00
parent f43942413e
commit efa341c7e8
3 changed files with 8 additions and 3 deletions

View File

@@ -561,7 +561,7 @@ func (s *Csv) GetInfoByHost(host string, r *http.Request) (h *Host, err error) {
v.Location = "/"
}
if strings.Index(r.RequestURI, v.Location) == 0 {
if h == nil || (len(v.Location) < len(h.Location)) {
if h == nil || (len(v.Location) > len(h.Location)) {
h = v
}
}