fix extension matching
This commit is contained in:
parent
7ad562af55
commit
c40243bb12
@ -311,14 +311,14 @@ load_terms (const char *path,
|
||||
const char *ext;
|
||||
const char *mime;
|
||||
} mm[] = {
|
||||
{ .ext = "html", .mime = "text/html" },
|
||||
{ .ext = "htm", .mime = "text/html" },
|
||||
{ .ext = "txt", .mime = "text/plain" },
|
||||
{ .ext = "pdf", .mime = "application/pdf" },
|
||||
{ .ext = "jpg", .mime = "image/jpeg" },
|
||||
{ .ext = "jpeg", .mime = "image/jpeg" },
|
||||
{ .ext = "png", .mime = "image/png" },
|
||||
{ .ext = "gif", .mime = "image/gif" },
|
||||
{ .ext = ".html", .mime = "text/html" },
|
||||
{ .ext = ".htm", .mime = "text/html" },
|
||||
{ .ext = ".txt", .mime = "text/plain" },
|
||||
{ .ext = ".pdf", .mime = "application/pdf" },
|
||||
{ .ext = ".jpg", .mime = "image/jpeg" },
|
||||
{ .ext = ".jpeg", .mime = "image/jpeg" },
|
||||
{ .ext = ".png", .mime = "image/png" },
|
||||
{ .ext = ".gif", .mime = "image/gif" },
|
||||
{ .ext = NULL, .mime = NULL }
|
||||
};
|
||||
const char *ext = strrchr (name, '.');
|
||||
|
@ -26,7 +26,8 @@ PORT = 8083
|
||||
|
||||
|
||||
[exchange]
|
||||
|
||||
TERMS_ETAG = 0
|
||||
TERMS_DIR = /home/grothoff/share/taler-exchange/tos/
|
||||
# how long is one signkey valid?
|
||||
signkey_duration = 4 weeks
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user