Skip to content
Permalink
Browse files

Ensure Host Header can be found and lookup

Signed-off-by: 蒼時弦也 <elct9620@frost.tw>
  • Loading branch information...
elct9620 authored and alexellis committed May 10, 2019
1 parent 3170077 commit fc8ffa2067ae3a7751bc6ad9434c2186502469f7
Showing with 1 addition and 1 deletion.
  1. +1 −1 pkg/router/router.go
@@ -48,7 +48,7 @@ func (r *Router) Lookup(req *http.Request) *Route {
r.RLock()
defer r.RUnlock()

targets := r.domains[req.URL.Host]
targets := r.domains[req.Host]
if len(targets) == 0 {
targets = r.domains[""]
}

0 comments on commit fc8ffa2

Please sign in to comment.
You can’t perform that action at this time.