1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vweb: fix actions with ?

This commit is contained in:
Alexander Medvednikov 2019-08-01 17:57:01 +02:00
parent 3cd88cbb6f
commit 3580179602

View File

@ -84,6 +84,9 @@ pub fn run<T>(port int) {
first_line := s.all_before('\n')
vals := first_line.split(' ')
mut action := vals[1].right(1).all_before('/')
if action.contains('?') {
action = action.all_before('?')
}
if action == '' {
action = 'index'
}