handle both normal and QR shapes of URLs
This commit is contained in:
parent
1172e81b3a
commit
7f5aeab463
1 changed files with 1 additions and 1 deletions
|
|
@ -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>>();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue