fix copy and paste

This commit is contained in:
Christian Grothoff 2019-12-08 22:52:02 +01:00
parent c40243bb12
commit a76247276d
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -202,8 +202,8 @@ TEH_handler_terms (struct TEH_RequestHandler *rh,
lang = MHD_lookup_connection_value (connection, lang = MHD_lookup_connection_value (connection,
MHD_HEADER_KIND, MHD_HEADER_KIND,
MHD_HTTP_HEADER_ACCEPT_LANGUAGE); MHD_HTTP_HEADER_ACCEPT_LANGUAGE);
if (NULL == mime) if (NULL == lang)
mime = "text/html"; lang = "en";
/* Find best match: must match mime type (if possible), and if /* Find best match: must match mime type (if possible), and if
mime type matches, ideally also language */ mime type matches, ideally also language */
for (unsigned int i = 0; i < terms_len; i++) for (unsigned int i = 0; i < terms_len; i++)