diff options
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/golangorg/server.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/golangorg/server.go b/cmd/golangorg/server.go index 3b015f98..827dedba 100644 --- a/cmd/golangorg/server.go +++ b/cmd/golangorg/server.go @@ -552,7 +552,9 @@ func hostEnforcerHandler(h http.Handler) http.Handler { // link back to URLs on the test site. func hostPathHandler(h http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - if r.Host != "localhost" && !strings.HasPrefix(r.Host, "localhost:") && !strings.HasSuffix(r.Host, ".appspot.com") { + if r.Host != "localhost" && !strings.HasPrefix(r.Host, "localhost:") && + !strings.HasSuffix(r.Host, ".appspot.com") && + !strings.HasSuffix(r.Host, `.local`) { h.ServeHTTP(w, r) return } |
