mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 20:46:50 +03:00
add bmp file format to file fetch types for gtk and framebuffer
This commit is contained in:
parent
e8e15b9133
commit
72277de6ea
@ -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";
|
||||
}
|
||||
|
||||
|
@ -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.");
|
||||
|
Loading…
Reference in New Issue
Block a user