gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: fix extension matching


From: gnunet
Subject: [taler-exchange] branch master updated: fix extension matching
Date: Sun, 08 Dec 2019 22:50:06 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new c40243bb fix extension matching
c40243bb is described below

commit c40243bb12e8a6f49ee981fa1f4c59512b4c329c
Author: Christian Grothoff <address@hidden>
AuthorDate: Sun Dec 8 22:50:04 2019 +0100

    fix extension matching
---
 src/exchange/taler-exchange-httpd_terms.c | 16 ++++++++--------
 src/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
index 53cdca70..8d9f9190 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 c7adcfe0..813202ae 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
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]