urllib: crash when converting URL to str
parent
7c70f3df93
commit
c4e9f09f0f
|
@ -564,7 +564,7 @@ fn parse_authority(authority string) ?ParseAuthorityRes {
|
||||||
host = h
|
host = h
|
||||||
}
|
}
|
||||||
if i < 0 {
|
if i < 0 {
|
||||||
return ParseAuthorityRes{host: host}
|
return ParseAuthorityRes{host: host, user: user}
|
||||||
}
|
}
|
||||||
mut userinfo := authority[..i]
|
mut userinfo := authority[..i]
|
||||||
if !valid_userinfo(userinfo) {
|
if !valid_userinfo(userinfo) {
|
||||||
|
|
Loading…
Reference in New Issue