diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-18 11:24:01 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-18 11:24:01 +0300 |
commit | 701f93645b7bb1f2e07e975f97b796910516256d (patch) | |
tree | 3165c2955a993eb2a31374c2be15f12e391ccc5a /src/gmrequest.c | |
parent | 0bbfd5a2e25e2a843fcee757469193533da98948 (diff) |
Minor tweaks
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")) { |