Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
louis77 committed Jan 10, 2025
1 parent f85c2ea commit 63f5f4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/veb/context.v
Original file line number Diff line number Diff line change
Expand Up @@ -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 != '' {
Expand Down

0 comments on commit 63f5f4a

Please sign in to comment.