From 5c629bce7af392f6b910c82ff0ed37dd614a8dc6 Mon Sep 17 00:00:00 2001 From: Thomas Koch Date: Sun, 12 Jan 2025 21:14:20 +0200 Subject: [PATCH] fix double https://https:// in useragent --- src/fetcher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fetcher.rs b/src/fetcher.rs index 8c7e0bc..0cf7f26 100644 --- a/src/fetcher.rs +++ b/src/fetcher.rs @@ -15,7 +15,7 @@ pub struct Fetcher { impl Fetcher { pub fn new(bot_name: &str, from: &str) -> Fetcher { let ua_name = format!( - "{bot_name}/{} https://{} software: {}", + "{bot_name}/{} {} software: {}", env!("CARGO_PKG_VERSION"), env!("CARGO_PKG_HOMEPAGE"), env!("CARGO_PKG_NAME")