vweb: small fixes
parent
9bcb5aaa55
commit
3e458a8801
|
@ -8,11 +8,11 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
struct Context {
|
struct Context {
|
||||||
|
static_files map[string]string
|
||||||
pub:
|
pub:
|
||||||
req http.Request
|
req http.Request
|
||||||
conn net.Socket
|
conn net.Socket
|
||||||
post_form map[string]string
|
post_form map[string]string
|
||||||
static_files map[string]string
|
|
||||||
// TODO Response
|
// TODO Response
|
||||||
headers []string // response headers
|
headers []string // response headers
|
||||||
}
|
}
|
||||||
|
@ -101,7 +101,6 @@ pub fn run<T>(port int) {
|
||||||
static_files: map[string]string{}
|
static_files: map[string]string{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
println('calling init')
|
|
||||||
app.init()
|
app.init()
|
||||||
if req.method == 'POST' {
|
if req.method == 'POST' {
|
||||||
app.vweb.parse_form(s)
|
app.vweb.parse_form(s)
|
||||||
|
|
Loading…
Reference in New Issue