From 7f98874272432815000b6c1aeedfc0327693490b Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Tue, 28 Jul 2020 20:58:11 +0300 Subject: GmRequest: Default MIME type --- src/gmrequest.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gmrequest.c') diff --git a/src/gmrequest.c b/src/gmrequest.c index 38702edb..ad0c5ed7 100644 --- a/src/gmrequest.c +++ b/src/gmrequest.c @@ -127,6 +127,9 @@ static void readIncoming_GmRequest_(iAnyObject *obj) { notifyDone = iTrue; } remove_Block(&d->header.chars, 0, 3); /* just the meta */ + if (code == success_GmStatusCode && isEmpty_String(&d->header)) { + setCStr_String(&d->header, "text/gemini; charset=utf-8"); /* default */ + } d->code = code; d->state = receivingBody_GmRequestState; notifyUpdate = iTrue; -- cgit v1.2.3