Skip to content

Commit 43491ff

Browse files
horjulfSlavek Kabrda
authored and
Slavek Kabrda
committed
Client validate return on 403 (#282)
1 parent e47f108 commit 43491ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

client.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ func (client *Client) Validate() (bool, error) {
9090

9191
defer resp.Body.Close()
9292

93+
if resp.StatusCode == http.StatusForbidden {
94+
return false, nil
95+
}
96+
9397
body, err := ioutil.ReadAll(resp.Body)
9498
if err != nil {
9599
return false, err

0 commit comments

Comments
 (0)