mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-12-02 07:26:47 +00:00
fix: repeat set http status
This commit is contained in:
1 parent
3e424dea7b
commit
1e7af0bbc7
1 file changed
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user