diff --git a/rpc/http.go b/rpc/http.go index dd51caf6ac..68634e3fdf 100644 --- a/rpc/http.go +++ b/rpc/http.go @@ -147,10 +147,10 @@ func NewHTTPServer(cors []string, srv *Server) *http.Server { // ServeHTTP serves JSON-RPC requests over HTTP. func (srv *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { - // Permit dumb empty requests for remote health-checks (AWS) + // Permit dumb empty requests for remote health-checks (AWS) if r.Method == "GET" && r.ContentLength == 0 && r.URL.RawQuery == "" { return - } + } if responseCode, errorMessage := httpErrorResponse(r); responseCode != 0 { http.Error(w, errorMessage, responseCode) return