expand mime list

This commit is contained in:
Christian Grothoff 2020-02-17 18:38:02 +01:00
parent b6c2aad49e
commit dcb8972085
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -331,6 +331,8 @@ load_terms (struct TALER_MHD_Legal *legal,
{ .ext = ".jpeg", .mime = "image/jpeg" }, { .ext = ".jpeg", .mime = "image/jpeg" },
{ .ext = ".png", .mime = "image/png" }, { .ext = ".png", .mime = "image/png" },
{ .ext = ".gif", .mime = "image/gif" }, { .ext = ".gif", .mime = "image/gif" },
{ .ext = ".epub", .mime = "application/epub+zip" },
{ .ext = ".xml", .mime = "text/xml" },
{ .ext = NULL, .mime = NULL } { .ext = NULL, .mime = NULL }
}; };
const char *ext = strrchr (name, '.'); const char *ext = strrchr (name, '.');