mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vweb: small fixes
This commit is contained in:
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
Block a user