summaryrefslogtreecommitdiff
path: root/admin.go
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2022-03-03 21:41:51 -0700
committerMatthew Holt <mholt@users.noreply.github.com>2022-03-03 21:41:51 -0700
commita72acd21b0ef17d6cd9064dd105042b6edb3b8dc (patch)
tree3c8977834e765ce194abc37a6bdcc4e4fc8bcb9f /admin.go
parenta6199cf814d676a11cc9e2abad81b48859198aa4 (diff)
core: Retry dynamic config load if config unchanged
(see discussion in #4603)
Diffstat (limited to 'admin.go')
-rw-r--r--admin.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin.go b/admin.go
index 8558cee..d31308a 100644
--- a/admin.go
+++ b/admin.go
@@ -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
}