1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

net.urllib: fix values (used for query string/form data)

This commit is contained in:
joe-conigliaro
2019-08-03 07:28:55 +10:00
committed by Alexander Medvednikov
parent 69084b0c57
commit 9e76d8a638
2 changed files with 44 additions and 19 deletions

View File

@@ -861,7 +861,7 @@ fn _parse_query(m mut Values, query string) ?bool {
// encode encodes the values into ``URL encoded'' form
// ('bar=baz&foo=quux') sorted by key.
fn (v Values) encode() string {
pub fn (v Values) encode() string {
if v.size == 0 {
return ''
}