summaryrefslogtreecommitdiff
path: root/src/ui/documentwidget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r--src/ui/documentwidget.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 7cd51561..4ac48323 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -859,12 +859,13 @@ static void updateDocument_DocumentWidget_(iDocumentWidget *d, const iGmResponse
859 while (nextSplit_Rangecc(mime, ";", &seg)) { 859 while (nextSplit_Rangecc(mime, ";", &seg)) {
860 iRangecc param = seg; 860 iRangecc param = seg;
861 trim_Rangecc(&param); 861 trim_Rangecc(&param);
862 if (equal_Rangecc(param, "text/plain")) { 862 if (equal_Rangecc(param, "text/gemini")) {
863 docFormat = plainText_GmDocumentFormat; 863 docFormat = gemini_GmDocumentFormat;
864 setRange_String(&d->sourceMime, param); 864 setRange_String(&d->sourceMime, param);
865 } 865 }
866 else if (equal_Rangecc(param, "text/gemini")) { 866 else if (startsWith_Rangecc(param, "text/") ||
867 docFormat = gemini_GmDocumentFormat; 867 equal_Rangecc(param, "application/json")) {
868 docFormat = plainText_GmDocumentFormat;
868 setRange_String(&d->sourceMime, param); 869 setRange_String(&d->sourceMime, param);
869 } 870 }
870 else if (startsWith_Rangecc(param, "image/") || 871 else if (startsWith_Rangecc(param, "image/") ||