diff --git a/vlib/vweb/parse.v b/vlib/vweb/parse.v index 6a78e99227..85303eadeb 100644 --- a/vlib/vweb/parse.v +++ b/vlib/vweb/parse.v @@ -8,7 +8,7 @@ fn parse_middleware(args []MethodArgs, attrs []string) ?string { for arg in args { // ast.string_type_idx = 20 if arg.typ != 20 { - return error("middleware arguments should be string type, `$arg.name` does not meet that rule") + return error('middleware arguments should be string type, `$arg.name` does not meet that rule') } } diff --git a/vlib/vweb/vweb.v b/vlib/vweb/vweb.v index 79b660e308..d829936c60 100644 --- a/vlib/vweb/vweb.v +++ b/vlib/vweb/vweb.v @@ -558,8 +558,8 @@ fn handle_conn(mut conn net.TcpConn, mut app T, routes map[string]Route, midd } struct Firable_middleware { - method string - params []string + method string + params []string path_len int }