diff options
author | Matthew Holt <[email protected]> | 2022-03-03 21:41:51 -0700 |
---|---|---|
committer | Matthew Holt <[email protected]> | 2022-03-03 21:41:51 -0700 |
commit | a72acd21b0ef17d6cd9064dd105042b6edb3b8dc (patch) | |
tree | 3c8977834e765ce194abc37a6bdcc4e4fc8bcb9f /admin.go | |
parent | a6199cf814d676a11cc9e2abad81b48859198aa4 (diff) | |
download | caddy-a72acd21b0ef17d6cd9064dd105042b6edb3b8dc.tar.gz caddy-a72acd21b0ef17d6cd9064dd105042b6edb3b8dc.zip |
core: Retry dynamic config load if config unchanged
(see discussion in #4603)
Diffstat (limited to 'admin.go')
-rw-r--r-- | admin.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -938,7 +938,7 @@ func handleConfig(w http.ResponseWriter, r *http.Request) error { forceReload := r.Header.Get("Cache-Control") == "must-revalidate" err := changeConfig(r.Method, r.URL.Path, body, forceReload) - if err != nil { + if err != nil && !errors.Is(err, errSameConfig) { return err } |