gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: return text/plain by default (fi


From: gnunet
Subject: [taler-exchange] branch master updated: return text/plain by default (fixes #7747)
Date: Sat, 08 Apr 2023 09:46:02 +0200

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 677ac4a5 return text/plain by default (fixes #7747)
677ac4a5 is described below

commit 677ac4a5c8570115134cda7537c1580bce15e5c4
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sat Apr 8 09:46:00 2023 +0200

    return text/plain by default (fixes #7747)
---
 src/mhd/mhd_legal.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mhd/mhd_legal.c b/src/mhd/mhd_legal.c
index 37042a56..2c412711 100644
--- a/src/mhd/mhd_legal.c
+++ b/src/mhd/mhd_legal.c
@@ -232,7 +232,7 @@ TALER_MHD_reply_legal (struct MHD_Connection *conn,
                                         MHD_HEADER_KIND,
                                         MHD_HTTP_HEADER_ACCEPT);
     if (NULL == mime)
-      mime = "text/html";
+      mime = "text/plain";
     lang = MHD_lookup_connection_value (conn,
                                         MHD_HEADER_KIND,
                                         MHD_HTTP_HEADER_ACCEPT_LANGUAGE);
@@ -385,9 +385,9 @@ load_terms (struct TALER_MHD_Legal *legal,
     const char *mime;
     unsigned int priority;
   } mm[] = {
+    { .ext = ".txt", .mime = "text/plain", .priority = 150 },
     { .ext = ".html", .mime = "text/html", .priority = 100 },
     { .ext = ".htm", .mime = "text/html", .priority = 99 },
-    { .ext = ".txt", .mime = "text/plain", .priority = 50 },
     { .ext = ".md", .mime = "text/markdown", .priority = 50 },
     { .ext = ".pdf", .mime = "application/pdf", .priority = 25 },
     { .ext = ".jpg", .mime = "image/jpeg" },

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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