diff --git a/vlib/veb/context.v b/vlib/veb/context.v index 768cbd8471ff49..a14aea5c6485a1 100644 --- a/vlib/veb/context.v +++ b/vlib/veb/context.v @@ -99,7 +99,7 @@ pub fn (mut ctx Context) send_response_to_client(mimetype string, response strin // set Content-Type and Content-Length headers mut custom_mimetype := if ctx.content_type.len == 0 { mimetype } else { ctx.content_type } - if custom_mimetype.len != '' { + if custom_mimetype != '' { ctx.res.header.set(.content_type, custom_mimetype) } if ctx.res.body != '' {