Skip to content

Commit

Permalink
Fix raw request output
Browse files Browse the repository at this point in the history
  • Loading branch information
Sh1Yo committed Aug 11, 2021
1 parent e2b601a commit 8815b2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "x8"
version = "3.0.1"
version = "3.0.2"
authors = ["Alexander Mironov <[email protected]>"]
edition = "2018"
license = "GPL-3.0-or-later"
Expand Down
4 changes: 4 additions & 0 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,10 @@ pub fn create_output(config: &Config, found_params: Vec<String>) -> String {
},
"request" => {
generate_request(config, &make_hashmap(&found_params, config.value_size))
.lines()
.skip(1)
.collect::<Vec<&str>>()
.join("\n") + "\n"
},
_ => {
let mut line = format!("{} {} % ", &config.method, &config.initial_url);
Expand Down

0 comments on commit 8815b2a

Please sign in to comment.