summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-12-08 22:52:02 +0100
committerChristian Grothoff <christian@grothoff.org>2019-12-08 22:52:02 +0100
commita76247276d5bc6520ccb849e043c4f52a2b40d8b (patch)
tree822273c0c38979dd527c26692f1775e19385bf84
parentc40243bb12e8a6f49ee981fa1f4c59512b4c329c (diff)
downloadexchange-a76247276d5bc6520ccb849e043c4f52a2b40d8b.tar.gz
exchange-a76247276d5bc6520ccb849e043c4f52a2b40d8b.tar.bz2
exchange-a76247276d5bc6520ccb849e043c4f52a2b40d8b.zip
fix copy and paste
-rw-r--r--src/exchange/taler-exchange-httpd_terms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/exchange/taler-exchange-httpd_terms.c b/src/exchange/taler-exchange-httpd_terms.c
index 8d9f9190..499c09a5 100644
--- a/src/exchange/taler-exchange-httpd_terms.c
+++ b/src/exchange/taler-exchange-httpd_terms.c
@@ -202,8 +202,8 @@ TEH_handler_terms (struct TEH_RequestHandler *rh,
lang = MHD_lookup_connection_value (connection,
MHD_HEADER_KIND,
MHD_HTTP_HEADER_ACCEPT_LANGUAGE);
- if (NULL == mime)
- mime = "text/html";
+ if (NULL == lang)
+ lang = "en";
/* Find best match: must match mime type (if possible), and if
mime type matches, ideally also language */
for (unsigned int i = 0; i < terms_len; i++)