Skip to content

Commit

Permalink
Fix HTTP panic caused by nil pointer exception from a missing remote …
Browse files Browse the repository at this point in the history
…hash
  • Loading branch information
Scott Crossen committed Aug 24, 2021
1 parent 7973189 commit f57bc88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions http_downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ func (downloader httpDownloader) RemoteChecksum(remotePath string) (string, erro
resp, err := client.Do(req)
if err != nil {
logrus.Debugf("MD5 sum not found at: %s", hashRemotePath)
return "", nil
}

logrus.Debugf("Found MD5 sum at: %s", hashRemotePath)
Expand Down

0 comments on commit f57bc88

Please sign in to comment.