mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
urllib: crash when converting URL to str
This commit is contained in:
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
Block a user