mirror of
https://github.com/usual2970/certimate.git
synced 2025-07-29 05:34:28 +00:00
Add qiniu deployer
This commit is contained in:
@@ -66,9 +66,6 @@ func ToRequest(req *http.Request, opts ...Option) (io.ReadCloser, error) {
|
||||
}
|
||||
|
||||
if res.StatusCode != http.StatusOK {
|
||||
defer res.Body.Close()
|
||||
body, _ := io.ReadAll(res.Body)
|
||||
fmt.Println(string(body))
|
||||
return nil, fmt.Errorf("status code is not 200: %d", res.StatusCode)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user