hotfix: fix subscription panic (#237)

This commit is contained in:
mzz 2023-07-24 21:54:20 +08:00 committed by GitHub
parent 9124c5d9f5
commit 3274b30448
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -170,6 +170,10 @@ func ResolveSubscription(log *logrus.Logger, client *http.Client, configDir stri
if err != nil {
return "", nil, err
}
resp, err = client.Do(req)
if err != nil {
return "", nil, err
}
defer resp.Body.Close()
b, err = io.ReadAll(resp.Body)
if err != nil {