diff --git a/proxy/http/server.go b/proxy/http/server.go index 6ed20e608..17ae31f43 100644 --- a/proxy/http/server.go +++ b/proxy/http/server.go @@ -217,7 +217,7 @@ func StripHopByHopHeaders(header http.Header) { var errWaitAnother = newError("keep alive") func (s *Server) handlePlainHTTP(ctx context.Context, request *http.Request, reader io.Reader, writer io.Writer, dest net.Destination, dispatcher dispatcher.Interface) error { - if len(request.URL.Host) <= 0 { + if len(request.Host) <= 0 { response := &http.Response{ Status: "Bad Request", StatusCode: 400,