A bunch of improvements to chaining

This commit is contained in:
Gregory Schier
2024-08-19 14:10:44 -07:00
parent 0f8aea3afd
commit 96125a0741
23 changed files with 218 additions and 82 deletions

View File

@@ -169,9 +169,10 @@ impl PluginManager {
content: &str,
content_type: &str,
) -> Result<FilterResponse> {
let plugin_name = match content_type {
"application/json" => "filter-jsonpath",
_ => "filter-xpath",
let plugin_name = if content_type.to_lowercase().contains("json") {
"filter-jsonpath"
} else {
"filter-xpath"
};
let event = self