mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 01:13:45 +00:00
rpc: fix formatting errors from merge conflicts
This commit is contained in:
parent
3530d5ef40
commit
08f1dd5477
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue