Skip to content

Commit

Permalink
updated valid status
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnguyen22 authored and luyzdeleon committed Apr 14, 2019
1 parent a316d9c commit 5a32b9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func ChainToHosted(b Blockchain) HostedChain {
// "dialHC" attempts to connect to the specific host:port hosting the chain.
func dialHC(u *url.URL) error {
resp, _ := http.Get(u.String())
if resp.StatusCode == 400 || resp.StatusCode == 200 {
if resp.StatusCode >= 200 {
return nil
}
return errors.New(strconv.Itoa(resp.StatusCode) + " : " + resp.Status)
Expand Down

0 comments on commit 5a32b9d

Please sign in to comment.