aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorGuillaume Pasquet <dev@etenil.net>2022-02-17 16:09:32 +0000
committerGuillaume Pasquet <dev@etenil.net>2022-02-17 16:09:32 +0000
commitd2446813f9e14cfdb4e62d1034bc8a844a14131a (patch)
tree2bd1a9b547e83c0081488c91e3be8592ccaef6b0 /src/main.rs
parent47fd1e1985faa8d3251674c4ea92e11797da5866 (diff)
Fix #2: Don't print header when using `-b`.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index f5abb69..4ddc809 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -57,7 +57,7 @@ fn run_file(args: &Args, executor: &mut Executor, file_name: &String) {
.as_str(),
)
.expect("Failed to parse file");
- let response = executor.execute(bfile).unwrap();
+ let response = executor.execute(bfile, args.req_headers()).unwrap();
if args.print_headers() {
println!("{} {}", response.status(), response.status_text());