Skip to content

Commit

Permalink
[*] fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Daiyangcheng authored May 6, 2023
1 parent cf62929 commit ba3a096
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ func (s Service) EZStartGetCfg(token string, proxyid string) (cfg string, err er
resp, err := client.Get(s.Host.String())
defer resp.Body.Close()
if err != nil {
return nil, err
return "", err
}
if resp.StatusCode != http.StatusOK {
return nil, ErrHTTPStatus{
return "", ErrHTTPStatus{
Status: resp.StatusCode,
Text: resp.Status,
}
Expand Down

0 comments on commit ba3a096

Please sign in to comment.