vweb: make html() return Result

pull/7955/head
Alexander Medvednikov 2021-01-08 05:05:29 +01:00
parent 352cf91ba2
commit 1b07710ab3
1 changed files with 2 additions and 1 deletions

View File

@ -100,8 +100,9 @@ pub fn (mut ctx Context) send_response_to_client(mimetype string, res string) bo
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)
return Result{}
}
pub fn (mut ctx Context) text(s string) Result {