mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-17 09:59:51 +00:00
Add qiniu deployer
This commit is contained in:
parent
e244d6e921
commit
abc6ea1ee4
@ -66,9 +66,6 @@ func ToRequest(req *http.Request, opts ...Option) (io.ReadCloser, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if res.StatusCode != http.StatusOK {
|
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)
|
return nil, fmt.Errorf("status code is not 200: %d", res.StatusCode)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user