Fixed minor bugs in renew policy toggle

This commit is contained in:
Toby Chui
2023-06-29 18:59:24 +08:00
parent 44ac7144ec
commit 2f14d6f271
6 changed files with 511 additions and 1 deletions

View File

@@ -57,15 +57,18 @@ func acmeRegisterSpecialRoutingRule() {
req.Host = r.Host
if err != nil {
fmt.Printf("client: could not create request: %s\n", err)
return
}
res, err := http.DefaultClient.Do(req)
if err != nil {
fmt.Printf("client: error making http request: %s\n", err)
return
}
resBody, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Printf("error reading: %s\n", err)
return
}
w.Write(resBody)
},