Skip to content

Commit

Permalink
Fix url output
Browse files Browse the repository at this point in the history
  • Loading branch information
Sh1Yo committed Jul 7, 2021
1 parent 4809676 commit f584819
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,10 @@ where
pub fn create_output(config: &Config, found_params: Vec<String>) -> String {
match config.output_format.as_str() {
"url" => {
let mut line = config.initial_url.to_owned()+"?";
let mut line = match config.initial_url.contains("?") {
true => config.initial_url.to_owned()+"&",
false => config.initial_url.to_owned()+"?"
};

for param in &found_params {
line.push_str(&param);
Expand Down

0 comments on commit f584819

Please sign in to comment.