mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-12 01:41:36 +00:00
node: host lookup should use lowercase
This commit is contained in:
parent
6ece4cd143
commit
32f3c4c0cf
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue