vweb: fix a route matching bug

pull/5652/head
Alexander Medvednikov 2020-07-03 22:00:17 +02:00
parent 67e85fa9dd
commit 244d61f8d0
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,7 @@ fn handle_conn<T>(conn net.Socket, mut app T) {
//println('words:') println(route_words)
//println('vals:') println(url_words)
vars = []string{cap: route_words.len}
if route_words.len == url_words.len {
if route_words.len <= url_words.len {
// match `/:user/:repo/tree` to `/vlang/v/tree`
for i, word in route_words {
if word.starts_with(':') {