Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,8 @@ func populateConsensusVersion(res *httpResponse, resp *http.Response) error {
respConsensusVersions, exists := resp.Header["Eth-Consensus-Version"]
if !exists {
// No consensus version supplied in response; obtain it from the body if possible.
if res.contentType != ContentTypeJSON {
// Not present here either. Many responses do not provide this information, so assume
if res.contentType != ContentTypeJSON || res.body == nil || len(res.body) == 0 {
// Not present here either. Many responses do not provide this information, so assume
// this is one of them.
return nil
}
Expand Down
Loading