From 04e2de609e545ca6d972358df0073f94fd0cc670 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Fri, 28 Feb 2025 17:26:46 +0900 Subject: [PATCH] updated the response code to MethodDelete from Ok To NoContent --- server-ctl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server-ctl.go b/server-ctl.go index 68757fb..53559b6 100644 --- a/server-ctl.go +++ b/server-ctl.go @@ -487,7 +487,7 @@ func (ctl *server_ctl_server_conns_id_routes_id_peers) ServeHTTP(w http.Response case http.MethodDelete: r.ReqStopAllServerPeerConns() - status_code = WriteEmptyRespHeader(w, http.StatusOK) + status_code = WriteEmptyRespHeader(w, http.StatusNoContent) default: status_code = WriteEmptyRespHeader(w, http.StatusMethodNotAllowed)