From c4e9f09f0f3822288bf3fc2156b5aa330d75310a Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Thu, 7 Nov 2019 00:34:33 +0500 Subject: [PATCH] urllib: crash when converting URL to str --- vlib/net/urllib/urllib.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/net/urllib/urllib.v b/vlib/net/urllib/urllib.v index 55de2d4f62..9412fd038f 100644 --- a/vlib/net/urllib/urllib.v +++ b/vlib/net/urllib/urllib.v @@ -564,7 +564,7 @@ fn parse_authority(authority string) ?ParseAuthorityRes { host = h } if i < 0 { - return ParseAuthorityRes{host: host} + return ParseAuthorityRes{host: host, user: user} } mut userinfo := authority[..i] if !valid_userinfo(userinfo) {