vweb: fix form parsing

pull/3015/head
Alexander Medvednikov 2019-12-08 17:37:23 +03:00
parent 02eee49d25
commit 1c6f7180b2
1 changed files with 3 additions and 0 deletions

View File

@ -159,6 +159,7 @@ pub fn run<T>(app mut T, port int) {
}
//}
if req.method in methods_with_form {
/*
for {
line := conn.read_line()
if line == '' || line == '\r\n' {
@ -168,6 +169,7 @@ pub fn run<T>(app mut T, port int) {
//break
//}
}
*/
line := conn.read_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.close() or {}
app.reset()
}
}