diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-11 12:26:43 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-11 12:26:43 +0300 |
commit | b60f49bae6756468de7d01c47469efb26f5a9910 (patch) | |
tree | bd2f01fae4ebf99a05ad306e5cb0fee5491a3b18 | |
parent | 960df03c17091aca37f53eaab8fc27c669d26a5e (diff) |
Gopher: Added the 'p' type
IssueID #356
-rw-r--r-- | src/gopher.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gopher.c b/src/gopher.c index 914f57ba..ac5fe560 100644 --- a/src/gopher.c +++ b/src/gopher.c | |||
@@ -136,6 +136,7 @@ static iBool convertSource_Gopher_(iGopher *d) { | |||
136 | case '5': | 136 | case '5': |
137 | case '9': | 137 | case '9': |
138 | case 'g': | 138 | case 'g': |
139 | case 'p': | ||
139 | case 'I': | 140 | case 'I': |
140 | case 's': { | 141 | case 's': { |
141 | iBeginCollect(); | 142 | iBeginCollect(); |
@@ -243,6 +244,9 @@ void open_Gopher(iGopher *d, const iString *url) { | |||
243 | case 'g': | 244 | case 'g': |
244 | setCStr_String(d->meta, "image/gif"); | 245 | setCStr_String(d->meta, "image/gif"); |
245 | break; | 246 | break; |
247 | case 'p': | ||
248 | setCStr_String(d->meta, "image/png"); | ||
249 | break; | ||
246 | case 'h': | 250 | case 'h': |
247 | setCStr_String(d->meta, "text/html"); | 251 | setCStr_String(d->meta, "text/html"); |
248 | break; | 252 | break; |