diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index a02938a..b7ce5ba 100644 --- a/src/main.rs +++ b/src/main.rs @@ -77,11 +77,18 @@ fn run_file(args: &Args, executor: &mut Executor, file_name: &String) -> Result< output.status(response.status(), response.status_text()); for header_name in response.headers_names() { - output.resp_hdr(header_name.to_string(), response.header(header_name.as_str()).unwrap()); + output.resp_hdr( + header_name.to_string(), + response.header(header_name.as_str()).unwrap(), + ); } output.end_resp_hdr(); - output.body(apply_filters(args, &bfile, response.into_string().unwrap())?); + output.body(apply_filters( + args, + &bfile, + response.into_string().unwrap(), + )?); Ok(()) } |