Explorar el Código

DeleteNamespaceHandler: explicitly return 200

Anukul Sangwan hace 4 años
padre
commit
2beb2408f3
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      api/server/handlers/cluster/delete_namespace.go

+ 2 - 0
api/server/handlers/cluster/delete_namespace.go

@@ -45,4 +45,6 @@ func (c *DeleteNamespaceHandler) ServeHTTP(w http.ResponseWriter, r *http.Reques
 		c.HandleAPIError(w, apierrors.NewErrInternal(err))
 		return
 	}
+
+	w.WriteHeader(http.StatusOK)
 }