vweb: fix actions with ?
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