summaryrefslogtreecommitdiff
path: root/frontends/gtk/fetch.c
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/gtk/fetch.c')
-rw-r--r--frontends/gtk/fetch.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/frontends/gtk/fetch.c b/frontends/gtk/fetch.c
index b05c1bd95..d77073a63 100644
--- a/frontends/gtk/fetch.c
+++ b/frontends/gtk/fetch.c
@@ -75,6 +75,7 @@ void gtk_fetch_filetype_init(const char *mimefile)
hash_add(mime_hash, "html", "text/html");
hash_add(mime_hash, "jpg", "image/jpeg");
hash_add(mime_hash, "jpeg", "image/jpeg");
+ hash_add(mime_hash, "jxl", "image/jxl");
hash_add(mime_hash, "gif", "image/gif");
hash_add(mime_hash, "png", "image/png");
hash_add(mime_hash, "jng", "image/jng");
@@ -117,11 +118,9 @@ void gtk_fetch_filetype_init(const char *mimefile)
type = ptr;
- /* search for the first non-whitespace char or NUL or
+ /* search for the first whitespace char or NUL or
* NL */
- while (*ptr &&
- (!ascii_is_space(*ptr)) &&
- *ptr != '\n') {
+ while (*ptr && (!ascii_is_space(*ptr))) {
ptr++;
}
@@ -146,9 +145,7 @@ void gtk_fetch_filetype_init(const char *mimefile)
/* search for the first whitespace char or
* NUL or NL which is the end of the ext.
*/
- while (*ptr &&
- (!ascii_is_space(*ptr)) &&
- *ptr != '\n') {
+ while (*ptr && (!ascii_is_space(*ptr))) {
ptr++;
}