exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit c40243bb12e8a6f49ee981fa1f4c59512b4c329c
parent 7ad562af5596289272cd051e1eb7ea72612147c1
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun,  8 Dec 2019 22:50:04 +0100

fix extension matching

Diffstat:
Msrc/exchange/taler-exchange-httpd_terms.c | 16++++++++--------
Msrc/lib/test_exchange_api.conf | 3++-
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 @@ -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 @@ -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