diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2023-12-13 10:48:21 +0100 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2023-12-13 10:48:21 +0100 |
commit | 9f69035271693efdb9cf927d2f2bcb501ca7b333 (patch) | |
tree | 4907e00c8dfa6260b03dbf7571b70da23c814d17 /src | |
parent | aa19314cc57e0db045b84829410c01e0084cb540 (diff) | |
parent | 547f2ea03fee27a16247c31aa8dce0af145364e1 (diff) | |
download | exchange-9f69035271693efdb9cf927d2f2bcb501ca7b333.tar.xz |
Merge branch 'master' of ssh://git.taler.net/exchange
Diffstat (limited to 'src')
-rw-r--r-- | src/mhd/mhd_legal.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mhd/mhd_legal.c b/src/mhd/mhd_legal.c index 137cc436a..5a600953e 100644 --- a/src/mhd/mhd_legal.c +++ b/src/mhd/mhd_legal.c @@ -260,7 +260,8 @@ TALER_MHD_reply_legal (struct MHD_Connection *conn, { langs = GNUNET_strdup (p->language); } - else + else if (NULL == strstr (langs, + p->language)) { char *tmp = langs; @@ -360,6 +361,10 @@ TALER_MHD_reply_legal (struct MHD_Connection *conn, MHD_add_response_header (resp, MHD_HTTP_HEADER_CONTENT_TYPE, t->mime_type)); + GNUNET_break (MHD_YES == + MHD_add_response_header (resp, + MHD_HTTP_HEADER_CONTENT_LANGUAGE, + t->language)); { MHD_RESULT ret; |