1
0
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:
Hunam
2022-06-02 17:07:25 +02:00
committed by GitHub
parent aae5b9fb95
commit 41414b5d5f
5 changed files with 15115 additions and 1 deletions

View File

@@ -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 {