Skip to content

Commit

Permalink
rpc: correct typo and reword comment for consistency (#20728)
Browse files Browse the repository at this point in the history
  • Loading branch information
renaynay authored Feb 28, 2020
1 parent 1e1b186 commit 01d9253
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpc/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
return
}
// 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.
ctx := r.Context()
ctx = context.WithValue(ctx, "remote", r.RemoteAddr)
Expand Down Expand Up @@ -338,7 +338,7 @@ func (h *virtualHostHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
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 {
h.next.ServeHTTP(w, r)
return
Expand Down

0 comments on commit 01d9253

Please sign in to comment.