Unverified Commit 01d92531 authored by rene's avatar rene Committed by GitHub

rpc: correct typo and reword comment for consistency (#20728)

parent 1e1b1863
...@@ -251,7 +251,7 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { ...@@ -251,7 +251,7 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
return return
} }
// All checks passed, create a codec that reads direct from the request body // All checks passed, create a codec that reads direct from the request body
// untilEOF and writes the response to w and order the server to process a // until EOF, write the response to w, and order the server to process a
// single request. // single request.
ctx := r.Context() ctx := r.Context()
ctx = context.WithValue(ctx, "remote", r.RemoteAddr) ctx = context.WithValue(ctx, "remote", r.RemoteAddr)
...@@ -338,7 +338,7 @@ func (h *virtualHostHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { ...@@ -338,7 +338,7 @@ func (h *virtualHostHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
return return
} }
// Not an ip address, but a hostname. Need to validate // Not an IP address, but a hostname. Need to validate
if _, exist := h.vhosts["*"]; exist { if _, exist := h.vhosts["*"]; exist {
h.next.ServeHTTP(w, r) h.next.ServeHTTP(w, r)
return return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment