From 1013612dc104452f2e693544a182f747e6d7cc6f Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Mon, 1 Aug 2022 22:12:36 +0800 Subject: [PATCH] fix: repeat set http status --- hub/route/provider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hub/route/provider.go b/hub/route/provider.go index e8c985a8..1ba0d32c 100644 --- a/hub/route/provider.go +++ b/hub/route/provider.go @@ -98,8 +98,8 @@ func updateRuleProvider(w http.ResponseWriter, r *http.Request) { if err := provider.Update(); err != nil { render.Status(r, http.StatusServiceUnavailable) render.JSON(w, r, newError(err.Error())) + return } - render.NoContent(w, r) }