mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vweb: fix form parsing
This commit is contained in:
parent
02eee49d25
commit
1c6f7180b2
@ -159,6 +159,7 @@ pub fn run<T>(app mut T, port int) {
|
|||||||
}
|
}
|
||||||
//}
|
//}
|
||||||
if req.method in methods_with_form {
|
if req.method in methods_with_form {
|
||||||
|
/*
|
||||||
for {
|
for {
|
||||||
line := conn.read_line()
|
line := conn.read_line()
|
||||||
if line == '' || line == '\r\n' {
|
if line == '' || line == '\r\n' {
|
||||||
@ -168,6 +169,7 @@ pub fn run<T>(app mut T, port int) {
|
|||||||
//break
|
//break
|
||||||
//}
|
//}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
line := conn.read_line()
|
line := conn.read_line()
|
||||||
app.vweb.parse_form(line)
|
app.vweb.parse_form(line)
|
||||||
}
|
}
|
||||||
@ -190,6 +192,7 @@ pub fn run<T>(app mut T, port int) {
|
|||||||
conn.write(HTTP_404) or {}
|
conn.write(HTTP_404) or {}
|
||||||
}
|
}
|
||||||
conn.close() or {}
|
conn.close() or {}
|
||||||
|
app.reset()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user