node: host lookup should use lowercase

This commit is contained in:
Weixie Cui 2026-04-24 20:00:00 +08:00
parent 6ece4cd143
commit 32f3c4c0cf

View file

@ -473,7 +473,7 @@ func (h *virtualHostHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
h.next.ServeHTTP(w, r)
return
}
if _, exist := h.vhosts[host]; exist {
if _, exist := h.vhosts[strings.ToLower(host)]; exist {
h.next.ServeHTTP(w, r)
return
}