diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-07-28 20:58:11 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-07-28 20:58:11 +0300 |
commit | 7f98874272432815000b6c1aeedfc0327693490b (patch) | |
tree | 3a3dc1a5094dd498a0d1a21d6bbd12033208235e /src/gmrequest.c | |
parent | b5495c5d2fc83f04e9e843c75da366059ddf8445 (diff) |
GmRequest: Default MIME type
Diffstat (limited to 'src/gmrequest.c')
-rw-r--r-- | src/gmrequest.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) { | |||
127 | notifyDone = iTrue; | 127 | notifyDone = iTrue; |
128 | } | 128 | } |
129 | remove_Block(&d->header.chars, 0, 3); /* just the meta */ | 129 | remove_Block(&d->header.chars, 0, 3); /* just the meta */ |
130 | if (code == success_GmStatusCode && isEmpty_String(&d->header)) { | ||
131 | setCStr_String(&d->header, "text/gemini; charset=utf-8"); /* default */ | ||
132 | } | ||
130 | d->code = code; | 133 | d->code = code; |
131 | d->state = receivingBody_GmRequestState; | 134 | d->state = receivingBody_GmRequestState; |
132 | notifyUpdate = iTrue; | 135 | notifyUpdate = iTrue; |