aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
authorMatt Holt <[email protected]>2024-10-01 20:31:30 -0600
committerGitHub <[email protected]>2024-10-01 20:31:30 -0600
commitc8adb1b553412253d5f166065635ab809d3eef33 (patch)
treec9481e569f09a09cf7383bb4e2c6c9441a573b9e /cmd
parent9b4acc2449b10ff7c32eff4ddf1838cd2d93c9cf (diff)
downloadcaddy-c8adb1b553412253d5f166065635ab809d3eef33.tar.gz
caddy-c8adb1b553412253d5f166065635ab809d3eef33.zip
cmd: Better error handling when reloading (#6601)
* caddyhttp: Limit auto-HTTPS error logs to 100 domains * Improve error message and increase error size limit
Diffstat (limited to 'cmd')
-rw-r--r--cmd/commandfuncs.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/commandfuncs.go b/cmd/commandfuncs.go
index 50e9b110d..a5c357cd7 100644
--- a/cmd/commandfuncs.go
+++ b/cmd/commandfuncs.go
@@ -716,7 +716,7 @@ func AdminAPIRequest(adminAddr, method, uri string, headers http.Header, body io
// if it didn't work, let the user know
if resp.StatusCode >= 400 {
- respBody, err := io.ReadAll(io.LimitReader(resp.Body, 1024*10))
+ respBody, err := io.ReadAll(io.LimitReader(resp.Body, 1024*1024*2))
if err != nil {
return nil, fmt.Errorf("HTTP %d: reading error message: %v", resp.StatusCode, err)
}