From 701f93645b7bb1f2e07e975f97b796910516256d Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Tue, 18 Aug 2020 11:24:01 +0300 Subject: Minor tweaks --- src/gmrequest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gmrequest.c') diff --git a/src/gmrequest.c b/src/gmrequest.c index 2b6ee9f9..0d69861d 100644 --- a/src/gmrequest.c +++ b/src/gmrequest.c @@ -330,7 +330,7 @@ void submit_GmRequest(iGmRequest *d) { /* TODO: Check supported file types: images, audio */ /* TODO: Detect text files based on contents? E.g., is the content valid UTF-8. */ d->resp.statusCode = success_GmStatusCode; - if (endsWithCase_String(path, ".gmi")) { + if (endsWithCase_String(path, ".gmi") || endsWithCase_String(path, ".gemini")) { setCStr_String(&d->resp.meta, "text/gemini; charset=utf-8"); } else if (endsWithCase_String(path, ".txt")) { -- cgit v1.2.3