From 19d7553d67800b0a3935f31960eaab9b108d0a37 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 25 Apr 2020 22:53:11 +0300 Subject: [PATCH] tests: fix vlib/net/http/cookie_test.v --- cmd/tools/vtest-fixed.v | 1 - vlib/net/http/cookie.v | 7 ++----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/cmd/tools/vtest-fixed.v b/cmd/tools/vtest-fixed.v index 511284fe82..ce2a38c5c2 100644 --- a/cmd/tools/vtest-fixed.v +++ b/cmd/tools/vtest-fixed.v @@ -18,7 +18,6 @@ const ( 'vlib/v/tests/type_test.v', 'vlib/v/tests/valgrind/valgrind_test.v', // ubuntu-musl only 'vlib/v/tests/pointers_str_test.v', - 'vlib/net/http/cookie_test.v', 'vlib/clipboard/clipboard_test.v', 'vlib/sqlite/sqlite_test.v', diff --git a/vlib/net/http/cookie.v b/vlib/net/http/cookie.v index ae9a1ed66d..58ec2067ca 100644 --- a/vlib/net/http/cookie.v +++ b/vlib/net/http/cookie.v @@ -415,13 +415,10 @@ fn is_cookie_name_valid(name string) bool { if name == '' { return false } - // TODO - /* - for b in name.bytes() { - if !(b in arrays.range(33, 126)) { + for b in name { + if b < 33 || b > 126 { return false } } - */ return true }