vweb: small fixes

pull/1385/head
Alexander Medvednikov 2019-07-30 18:27:46 +02:00
parent 9bcb5aaa55
commit 3e458a8801
1 changed files with 1 additions and 2 deletions

View File

@ -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<T>(port int) {
static_files: map[string]string{}
}
}
println('calling init')
app.init()
if req.method == 'POST' {
app.vweb.parse_form(s)