aboutsummaryrefslogtreecommitdiff
path: root/src/executor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/executor.rs')
-rw-r--r--src/executor.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/executor.rs b/src/executor.rs
index 15704c2..eccab39 100644
--- a/src/executor.rs
+++ b/src/executor.rs
@@ -89,7 +89,7 @@ impl Executor {
arg_filter: &Option<String>,
) -> Result<String, String> {
if let Some(filter) = arg_filter {
- return Ok(BarbFilter::new(None, filter.to_string()).apply(&body)?);
+ return Ok(BarbFilter::from_path(filter.to_string()).apply(&body)?);
} else if bfile.filters().len() > 0 {
let mut end_body: String = body.clone();
for filter in bfile.filters().iter() {
@@ -144,11 +144,7 @@ impl Executor {
}
output.end_resp_hdr();
- output.body(self.apply_filters(
- &bfile,
- response.into_string().unwrap(),
- filter,
- )?);
+ output.body(self.apply_filters(&bfile, response.into_string().unwrap(), filter)?);
Ok(())
}