summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_terms.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-12-08 22:50:04 +0100
committerChristian Grothoff <christian@grothoff.org>2019-12-08 22:50:04 +0100
commitc40243bb12e8a6f49ee981fa1f4c59512b4c329c (patch)
treee89a2b5433d58e6564418acee5b7a68cf9265688 /src/exchange/taler-exchange-httpd_terms.c
parent7ad562af5596289272cd051e1eb7ea72612147c1 (diff)
downloadexchange-c40243bb12e8a6f49ee981fa1f4c59512b4c329c.tar.gz
exchange-c40243bb12e8a6f49ee981fa1f4c59512b4c329c.tar.bz2
exchange-c40243bb12e8a6f49ee981fa1f4c59512b4c329c.zip
fix extension matching
Diffstat (limited to 'src/exchange/taler-exchange-httpd_terms.c')
-rw-r--r--src/exchange/taler-exchange-httpd_terms.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/exchange/taler-exchange-httpd_terms.c b/src/exchange/taler-exchange-httpd_terms.c
index 53cdca709..8d9f91900 100644
--- a/src/exchange/taler-exchange-httpd_terms.c
+++ b/src/exchange/taler-exchange-httpd_terms.c
@@ -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, '.');