mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
http: fix recent changes; picoev: make compile
This commit is contained in:
@ -19,7 +19,8 @@ fn hello_response() string {
|
||||
return 'Hello, World!'
|
||||
}
|
||||
|
||||
pub fn callback(req picohttpparser.Request, res mut picohttpparser.Response) {
|
||||
|
||||
fn callback(req picohttpparser.Request, res mut picohttpparser.Response) {
|
||||
if picohttpparser.cmpn(req.method, 'GET ', 4) {
|
||||
if picohttpparser.cmp(req.path, '/t') {
|
||||
res.http_ok().header_server().header_date().plain().body(hello_response())
|
||||
|
Reference in New Issue
Block a user