Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/72277de6ead1324bbd7fa512e772d92e1f4b0951
...commit
http://git.netsurf-browser.org/netsurf.git/commit/72277de6ead1324bbd7fa512e772d92e1f4b0951
...tree
http://git.netsurf-browser.org/netsurf.git/tree/72277de6ead1324bbd7fa512e772d92e1f4b0951
The branch, master has been updated
via 72277de6ead1324bbd7fa512e772d92e1f4b0951 (commit)
from e8e15b91333c8528eb398557c33cca6a0a82fb6d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=72277de6ead1324bbd7fa512e772d92e1f4b0951
commit 72277de6ead1324bbd7fa512e772d92e1f4b0951
Author: Vincent Sanders <[email protected]>
Commit: Vincent Sanders <[email protected]>
add bmp file format to file fetch types for gtk and framebuffer
diff --git a/frontends/framebuffer/fetch.c b/frontends/framebuffer/fetch.c
index e6b72e0..801b87a 100644
--- a/frontends/framebuffer/fetch.c
+++ b/frontends/framebuffer/fetch.c
@@ -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";
}
diff --git a/frontends/gtk/fetch.c b/frontends/gtk/fetch.c
index 1f397e1..6b6e41d 100644
--- a/frontends/gtk/fetch.c
+++ b/frontends/gtk/fetch.c
@@ -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.");
-----------------------------------------------------------------------
Summary of changes:
frontends/framebuffer/fetch.c | 2 ++
frontends/gtk/fetch.c | 1 +
2 files changed, 3 insertions(+)
diff --git a/frontends/framebuffer/fetch.c b/frontends/framebuffer/fetch.c
index e6b72e0..801b87a 100644
--- a/frontends/framebuffer/fetch.c
+++ b/frontends/framebuffer/fetch.c
@@ -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";
}
diff --git a/frontends/gtk/fetch.c b/frontends/gtk/fetch.c
index 1f397e1..6b6e41d 100644
--- a/frontends/gtk/fetch.c
+++ b/frontends/gtk/fetch.c
@@ -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.");
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org