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:
parent
3cd88cbb6f
commit
3580179602
@ -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'
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user