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

autofree: another lambda fix

This commit is contained in:
Alexander Medvednikov
2020-10-30 00:43:04 +01:00
parent ccc0cb23ed
commit dca3d13606
3 changed files with 6 additions and 4 deletions

View File

@@ -359,7 +359,8 @@ fn handle_conn<T>(conn net.Socket, mut app T) {
} else {
// Parse URL query
if url_words.last().contains('?') {
tmp_query := url_words.last().all_after('?').split('&').map(it.split('='))
words := url_words.last().after('?').split('&')
tmp_query := words.map(it.split('='))
url_words[url_words.len - 1] = url_words.last().all_before('?')
for data in tmp_query {
if data.len == 2 {