补充实现细节

This commit is contained in:
dragon
2025-01-08 17:10:25 +08:00
parent b617127a8b
commit 1e9d24096c
11 changed files with 117 additions and 61 deletions

View File

@@ -121,9 +121,5 @@ func (g *ProviderGitea) Open(client *http.Client, owner, repo, commit, path stri
}
}
req.Header.Add("Authorization", "token "+g.Token)
resp, err := client.Do(req)
if err != nil && resp == nil {
return nil, err
}
return resp, nil
return client.Do(req)
}