From 8815b2a4b275fbffb562e70fed37a176eb59834c Mon Sep 17 00:00:00 2001 From: Alexander Mironov Date: Wed, 11 Aug 2021 19:44:09 +0400 Subject: [PATCH] Fix raw request output --- Cargo.toml | 2 +- src/utils.rs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index daf8621..ab7c62a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "x8" -version = "3.0.1" +version = "3.0.2" authors = ["Alexander Mironov "] edition = "2018" license = "GPL-3.0-or-later" diff --git a/src/utils.rs b/src/utils.rs index d9629c5..647428f 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -475,6 +475,10 @@ pub fn create_output(config: &Config, found_params: Vec) -> String { }, "request" => { generate_request(config, &make_hashmap(&found_params, config.value_size)) + .lines() + .skip(1) + .collect::>() + .join("\n") + "\n" }, _ => { let mut line = format!("{} {} % ", &config.method, &config.initial_url);