fix(pia): remove username+password from login bad http status code
This commit is contained in:
@@ -266,7 +266,7 @@ func fetchToken(ctx context.Context, client *http.Client,
|
|||||||
defer response.Body.Close()
|
defer response.Body.Close()
|
||||||
|
|
||||||
if response.StatusCode != http.StatusOK {
|
if response.StatusCode != http.StatusOK {
|
||||||
return "", makeNOKStatusError(response, nil)
|
return "", makeNOKStatusError(response, errSubstitutions)
|
||||||
}
|
}
|
||||||
|
|
||||||
decoder := json.NewDecoder(response.Body)
|
decoder := json.NewDecoder(response.Body)
|
||||||
|
|||||||
Reference in New Issue
Block a user