From 0efd083e7c843a290f54b4858f8b20722ec90b0c Mon Sep 17 00:00:00 2001 From: Anton Zavodchikov Date: Tue, 21 Dec 2021 07:09:54 +0500 Subject: [PATCH] ignore `use` attribute in parse --- vlib/vweb/parse.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/vweb/parse.v b/vlib/vweb/parse.v index f28d7a1a0d..984af522cc 100644 --- a/vlib/vweb/parse.v +++ b/vlib/vweb/parse.v @@ -9,7 +9,7 @@ fn parse_attrs(name string, attrs []string) ?([]http.Method, string) { return [http.Method.get], '/$name' } - mut x := attrs.clone() + mut x := attrs.clone().filter(it.to_lower() != 'use') mut methods := []http.Method{} mut path := ''