From e3a30a65e1e74344cbf09a355f13a2d961a0796a Mon Sep 17 00:00:00 2001 From: Eduard Tolosa Date: Tue, 6 Oct 2020 22:27:21 -0500 Subject: [PATCH] Bump version. --- Cargo.lock | 2 +- Cargo.toml | 2 +- fhc.1 | 9 ++++++--- src/main.rs | 4 ++-- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8d59435..dbff0af 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -116,7 +116,7 @@ dependencies = [ [[package]] name = "fhc" -version = "0.3.0" +version = "0.4.0" dependencies = [ "clap", "futures", diff --git a/Cargo.toml b/Cargo.toml index c5887f6..95f9f8f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fhc" -version = "0.3.0" +version = "0.4.0" authors = ["Eduard Tolosa "] edition = "2018" description = "Fast HTTP Checker." diff --git a/fhc.1 b/fhc.1 index b8b6231..4895518 100644 --- a/fhc.1 +++ b/fhc.1 @@ -1,9 +1,9 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16. -.TH FHC "1" "October 2020" "FHC 0.3.0" "User Commands" +.TH FHC "1" "October 2020" "FHC 0.4.0" "User Commands" .SH NAME -FHC \- manual page for FHC 0.3.0 +FHC \- manual page for FHC 0.4.0 .SH DESCRIPTION -FHC 0.3.0 +FHC 0.4.0 Eduard Tolosa Fast HTTP Checker. .SS "USAGE:" @@ -29,6 +29,9 @@ Show URLs with 500\-599 response codes only. \fB\-h\fR, \fB\-\-help\fR Prints help information .TP +\fB\-s\fR, \fB\-\-show\-codes\fR +Show status codes for discovered hosts. +.TP \fB\-V\fR, \fB\-\-version\fR Prints version information .SS "OPTIONS:" diff --git a/src/main.rs b/src/main.rs index a0c24e1..543d1bd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -112,8 +112,8 @@ async fn main() -> Result<(), Box> { futures::stream::iter(hosts.into_iter().map(|host| { // HTTP/HTTP URLs - let https_url = format!("https://{}/", host); - let http_url = format!("http://{}/", host); + let https_url = format!("https://{}", host); + let http_url = format!("http://{}", host); // Create futures let https_send_fut = client.get(&https_url).send(); let http_send_fut = client.get(&http_url).send();