diff --git a/vlib/picohttpparser/response.v b/vlib/picohttpparser/response.v index bf4642bc3b..b8819dc74a 100644 --- a/vlib/picohttpparser/response.v +++ b/vlib/picohttpparser/response.v @@ -46,6 +46,12 @@ pub fn (mut r Response) content_type(s string) &Response { return r } +[inline] +pub fn (mut r Response) html() &Response { + r.buf += cpy_str(r.buf, "Content-Type: text/html\r\n") + return r +} + [inline] pub fn (mut r Response) plain() &Response { r.buf += cpy_str(r.buf, "Content-Type: text/plain\r\n")