errors in comments for http.go

This commit is contained in:
renaynay 2020-02-28 13:57:12 +01:00
parent 1e1b18637e
commit 0ee8a31c94
No known key found for this signature in database
GPG key ID: 05A3D0A4AD5EEC87

View file

@ -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, writes the response to w and order the server to process a
// single request.
ctx := r.Context()
ctx = context.WithValue(ctx, "remote", r.RemoteAddr)
@ -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