summaryrefslogtreecommitdiff
path: root/src
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
parent7ad562af5596289272cd051e1eb7ea72612147c1 (diff)
downloadexchange-c40243bb12e8a6f49ee981fa1f4c59512b4c329c.tar.gz
exchange-c40243bb12e8a6f49ee981fa1f4c59512b4c329c.tar.bz2
exchange-c40243bb12e8a6f49ee981fa1f4c59512b4c329c.zip
fix extension matching
Diffstat (limited to 'src')
-rw-r--r--src/exchange/taler-exchange-httpd_terms.c16
-rw-r--r--src/lib/test_exchange_api.conf3
2 files changed, 10 insertions, 9 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, '.');
diff --git a/src/lib/test_exchange_api.conf b/src/lib/test_exchange_api.conf
index c7adcfe06..813202ae1 100644
--- a/src/lib/test_exchange_api.conf
+++ b/src/lib/test_exchange_api.conf
@@ -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