1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vweb: make html() return Result

This commit is contained in:
Alexander Medvednikov 2021-01-08 05:05:29 +01:00
parent 352cf91ba2
commit 1b07710ab3

@ -100,8 +100,9 @@ pub fn (mut ctx Context) send_response_to_client(mimetype string, res string) bo
return true return true
} }
pub fn (mut ctx Context) html(s string) { pub fn (mut ctx Context) html(s string) Result {
ctx.send_response_to_client('text/html', s) ctx.send_response_to_client('text/html', s)
return Result{}
} }
pub fn (mut ctx Context) text(s string) Result { pub fn (mut ctx Context) text(s string) Result {