mirror of
https://github.com/caddyserver/caddy.git
synced 2026-08-28 12:45:58 +00:00
Merge 78e59051a0 into 13a4c3f43c
This commit is contained in:
commit
d3f5ac0393
1 changed files with 1 additions and 0 deletions
|
|
@ -288,6 +288,7 @@ func downloadBuild(qs url.Values) (*http.Response, error) {
|
|||
return nil, fmt.Errorf("secure request failed: %v", err)
|
||||
}
|
||||
if resp.StatusCode >= 400 {
|
||||
defer resp.Body.Close()
|
||||
var details struct {
|
||||
StatusCode int `json:"status_code"`
|
||||
Error struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue