handle both normal and QR shapes of URLs

This commit is contained in:
puck 2026-03-07 19:13:25 +00:00
parent 1172e81b3a
commit 7f5aeab463

View file

@ -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::<HashMap<String, String>>();