From 7f5aeab4639c8ffaba945c8679876fdcea817e43 Mon Sep 17 00:00:00 2001 From: Puck Meerburg Date: Sat, 7 Mar 2026 19:13:25 +0000 Subject: [PATCH] handle both normal and QR shapes of URLs --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index c407bde..17c073e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -594,7 +594,7 @@ fn main() { let (gtc_pipe_s, gtc_pipe_r) = async_channel::unbounded(); let s = args().nth(1).unwrap(); - let mut parsed_url = url::form_urlencoded::parse(s.split(':').last().unwrap().as_bytes()) + let mut parsed_url = url::form_urlencoded::parse(s.replace("//", "").split(':').last().unwrap().as_bytes()) .into_owned() .collect::>();