summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_terms.c
diff options
context:
space:
mode:
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, '.');