mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vlib: add net.http.mime
(#14516)
This commit is contained in:
@@ -260,7 +260,7 @@ pub fn (mut ctx Context) file(f_path string) Result {
|
||||
return Result{}
|
||||
}
|
||||
content_type := vweb.mime_types[ext]
|
||||
if content_type == '' {
|
||||
if content_type.len == O {
|
||||
eprintln('no MIME type found for extension $ext')
|
||||
ctx.server_error(500)
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user