add bmp file format to file fetch types for gtk and framebuffer

This commit is contained in:
Vincent Sanders 2016-08-16 13:08:44 +01:00
parent e8e15b9133
commit 72277de6ea
2 changed files with 3 additions and 0 deletions

View File

@ -85,6 +85,8 @@ static const char *fetch_filetype(const char *unix_path)
return "image/jng";
if (2 < l && strcasecmp(unix_path + l - 3, "svg") == 0)
return "image/svg";
if (2 < l && strcasecmp(unix_path + l - 3, "bmp") == 0)
return "image/bmp";
return "text/html";
}

View File

@ -76,6 +76,7 @@ void gtk_fetch_filetype_init(const char *mimefile)
hash_add(mime_hash, "mng", "image/mng");
hash_add(mime_hash, "webp", "image/webp");
hash_add(mime_hash, "spr", "image/x-riscos-sprite");
hash_add(mime_hash, "bmp", "image/bmp");
if (fh == NULL) {
LOG("Unable to open a mime.types file, so using a minimal one for you.");