tests: fix vlib/net/http/cookie_test.v

pull/4599/head
Delyan Angelov 2020-04-25 22:53:11 +03:00
parent 3e68e429b6
commit 19d7553d67
2 changed files with 2 additions and 6 deletions

View File

@ -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',

View File

@ -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<byte>(33, 126)) {
for b in name {
if b < 33 || b > 126 {
return false
}
}
*/
return true
}