Skip to content

Commit ef84700

Browse files
wuriyantowuriyanto
authored andcommitted
service web: change range http code status to less than 500
1 parent d5411df commit ef84700

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

services/web/web.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func (d *Web) Ping() []byte {
5353
return []byte("NOT_OK")
5454
}
5555

56-
statusOK := resp.StatusCode >= 200 && resp.StatusCode < 300
56+
statusOK := resp.StatusCode >= 200 && resp.StatusCode < 500
5757
if !statusOK {
5858
d.SetMessage(fmt.Sprintf("error: web Ping status: %d\n", resp.StatusCode))
5959
if d.verbose {

0 commit comments

Comments
 (0)