1
0
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:
Alexander Medvednikov
2020-05-20 05:36:46 +02:00
parent e137fbb1ea
commit 0a6d709ce2
7 changed files with 30 additions and 24 deletions

View File

@ -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())