core: Retry dynamic config load if config unchanged

(see discussion in #4603)
This commit is contained in:
Matthew Holt
2022-03-03 21:41:51 -07:00
parent a6199cf814
commit a72acd21b0
2 changed files with 34 additions and 15 deletions

View File

@ -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
}