Handle http status 5xx error
This commit is contained in:
@@ -125,7 +125,7 @@ func (c *Client) Verify(ctx context.Context, reqBody IAPRequest, result interfac
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
if resp.StatusCode >= 500 {
|
||||
return fmt.Errorf("Received http status code %d from the App Store: %w", resp.StatusCode, ErrAppStoreServer)
|
||||
return "", fmt.Errorf("Received http status code %d from the App Store: %w", resp.StatusCode, ErrAppStoreServer)
|
||||
}
|
||||
return c.parseResponse(resp, result, ctx, reqBody)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user