diff options
Diffstat (limited to 'src/gmrequest.c')
-rw-r--r-- | src/gmrequest.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { | |||
330 | /* TODO: Check supported file types: images, audio */ | 330 | /* TODO: Check supported file types: images, audio */ |
331 | /* TODO: Detect text files based on contents? E.g., is the content valid UTF-8. */ | 331 | /* TODO: Detect text files based on contents? E.g., is the content valid UTF-8. */ |
332 | d->resp.statusCode = success_GmStatusCode; | 332 | d->resp.statusCode = success_GmStatusCode; |
333 | if (endsWithCase_String(path, ".gmi")) { | 333 | if (endsWithCase_String(path, ".gmi") || endsWithCase_String(path, ".gemini")) { |
334 | setCStr_String(&d->resp.meta, "text/gemini; charset=utf-8"); | 334 | setCStr_String(&d->resp.meta, "text/gemini; charset=utf-8"); |
335 | } | 335 | } |
336 | else if (endsWithCase_String(path, ".txt")) { | 336 | else if (endsWithCase_String(path, ".txt")) { |