Skip to content

Commit

Permalink
fix IsServerErr: code '500' is also ServerErr
Browse files Browse the repository at this point in the history
  • Loading branch information
rainzm committed May 22, 2020
1 parent c794687 commit 403c3bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func (re SRequestErr) IsClientErr() bool {
}

func (re SRequestErr) IsServerErr() bool {
return re.Code > 500
return re.Code >= 500
}

func (re SRequestErr) Error() string {
Expand Down

0 comments on commit 403c3bc

Please sign in to comment.