From 582ee9e64308ceb57beb17aeedb153aa2dccd69b Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 7 Apr 2020 22:57:44 +0300 Subject: [PATCH] urllib: put braces in << | expressions in urllib.v to make test pass --- cmd/tools/vtest-fixed.v | 1 - vlib/net/urllib/urllib.v | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/tools/vtest-fixed.v b/cmd/tools/vtest-fixed.v index 857883349a..d079031941 100644 --- a/cmd/tools/vtest-fixed.v +++ b/cmd/tools/vtest-fixed.v @@ -38,7 +38,6 @@ const ( 'vlib/net/http/http_test.v', 'vlib/net/socket_test.v', 'vlib/net/socket_udp_test.v', - 'vlib/net/urllib/urllib_test.v', 'vlib/os/environment_test.v', // Linux only 'vlib/rand/pcg32_test.v', 'vlib/rand/splitmix64_test.v', diff --git a/vlib/net/urllib/urllib.v b/vlib/net/urllib/urllib.v index 81f8a9e12c..a4a6f8a3dc 100644 --- a/vlib/net/urllib/urllib.v +++ b/vlib/net/urllib/urllib.v @@ -182,7 +182,7 @@ fn unescape(s_ string, mode EncodingMode) ?string { // That is, you can use escaping in the zone identifier but not // to introduce bytes you couldn't just write directly. // But Windows puts spaces here! Yay. - v := (unhex(s[i + 1])<