rework not found

This commit is contained in:
Mikaël Cluseau
2023-02-13 18:07:10 +01:00
parent 4acdf88785
commit 5a6c0fa3d8
5 changed files with 29 additions and 29 deletions

View File

@ -220,8 +220,8 @@ func wsReadConfig(resp *restful.Response) *localconfig.Config {
return cfg
}
func wsNotFound(req *restful.Request, resp *restful.Response) {
http.NotFound(resp.ResponseWriter, req.Request)
func wsNotFound(resp *restful.Response) {
wsError(resp, ErrNotFound)
}
func wsBadRequest(resp *restful.Response, err string) {