diff options
| author | 2023-08-17 18:06:36 +0200 | |
|---|---|---|
| committer | 2023-08-17 18:06:36 +0200 | |
| commit | 93bdf79eb69d79803a091e2d6583772b40e41f44 (patch) | |
| tree | b4cc7299ada89eb008ea287de3afd0a1ae128a30 /xs_mime.h | |
| parent | Convert 'Link' attachments that have a media extension to something more useful. (diff) | |
| download | snac2-93bdf79eb69d79803a091e2d6583772b40e41f44.tar.gz snac2-93bdf79eb69d79803a091e2d6583772b40e41f44.tar.xz snac2-93bdf79eb69d79803a091e2d6583772b40e41f44.zip | |
mastoapi: in instance, return the list of supported mime types from the internal list.
Diffstat (limited to 'xs_mime.h')
| -rw-r--r-- | xs_mime.h | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -56,7 +56,7 @@ const char *xs_mime_by_ext(const char *file) | |||
| 56 | const char **p = xs_mime_types; | 56 | const char **p = xs_mime_types; |
| 57 | xs *uext = xs_tolower_i(xs_dup(ext + 1)); | 57 | xs *uext = xs_tolower_i(xs_dup(ext + 1)); |
| 58 | 58 | ||
| 59 | while (**p) { | 59 | while (*p) { |
| 60 | int c; | 60 | int c; |
| 61 | 61 | ||
| 62 | if ((c = strcmp(*p, uext)) == 0) | 62 | if ((c = strcmp(*p, uext)) == 0) |