From 3e458a8801aace646a4a805078be082a77ac9ced Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Tue, 30 Jul 2019 18:27:46 +0200 Subject: [PATCH] vweb: small fixes --- vlib/vweb/vweb.v | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vlib/vweb/vweb.v b/vlib/vweb/vweb.v index 2cdb1c78a1..96c363b0f4 100644 --- a/vlib/vweb/vweb.v +++ b/vlib/vweb/vweb.v @@ -8,11 +8,11 @@ import ( ) struct Context { + static_files map[string]string pub: req http.Request conn net.Socket post_form map[string]string - static_files map[string]string // TODO Response headers []string // response headers } @@ -101,7 +101,6 @@ pub fn run(port int) { static_files: map[string]string{} } } -println('calling init') app.init() if req.method == 'POST' { app.vweb.parse_form(s)