mirror of
https://github.com/caddyserver/caddy.git
synced 2025-05-24 03:19:59 +08:00
core: Retry dynamic config load if config unchanged
(see discussion in #4603)
This commit is contained in:
2
admin.go
2
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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user