diff options
Diffstat (limited to 'src/net/lua.c')
| -rw-r--r-- | src/net/lua.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/lua.c b/src/net/lua.c index d60c018..ba9a204 100644 --- a/src/net/lua.c +++ b/src/net/lua.c @@ -229,7 +229,7 @@ int l_sendfile(lua_State* L){ } char* ext = strrchr(path, '.'); - if(ext){ + if(ext && mime_type != NULL){ char* content_type = map_get(mime_type, ext + 1); if(content_type) |
