From 1b07710ab37081a368e75be44b24fc3709c3e7f6 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Fri, 8 Jan 2021 05:05:29 +0100 Subject: [PATCH] vweb: make html() return Result --- vlib/vweb/vweb.v | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vlib/vweb/vweb.v b/vlib/vweb/vweb.v index b3737cad35..53712622ea 100644 --- a/vlib/vweb/vweb.v +++ b/vlib/vweb/vweb.v @@ -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 {