From 1c6f7180b27daf6386eaf9e7f2dec02b19a0533b Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sun, 8 Dec 2019 17:37:23 +0300 Subject: [PATCH] vweb: fix form parsing --- vlib/vweb/vweb.v | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vlib/vweb/vweb.v b/vlib/vweb/vweb.v index 1c9e4f0785..8d2e656fdd 100644 --- a/vlib/vweb/vweb.v +++ b/vlib/vweb/vweb.v @@ -159,6 +159,7 @@ pub fn run(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(app mut T, port int) { //break //} } + */ line := conn.read_line() app.vweb.parse_form(line) } @@ -190,6 +192,7 @@ pub fn run(app mut T, port int) { conn.write(HTTP_404) or {} } conn.close() or {} + app.reset() } }