diff --git a/auditing/auditing-interceptor.go b/auditing/auditing-interceptor.go index db70f79..a7fb58f 100644 --- a/auditing/auditing-interceptor.go +++ b/auditing/auditing-interceptor.go @@ -300,6 +300,11 @@ func HttpFilter(a Auditing, logger *zap.SugaredLogger) restful.FilterFunction { case http.MethodPost, http.MethodPut, http.MethodPatch, http.MethodDelete: break default: + if request.SelectedRoute() == nil { + logger.Debugw("selected route is not defined, continue request processing") + chain.ProcessFilter(request, response) + return + } included, ok := request.SelectedRoute().Metadata()[Include].(bool) if ok && included { break