aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2020-12-02 21:54:49 +0000
committerbptato <nincsnevem662@gmail.com>2020-12-02 21:54:49 +0000
commit7dcc7ccff1ea1e16be799d440c1f6ef892679615 (patch)
tree42c51441a14d928cb5d925a790dd603cd3d89faf
parentUpdate ChangeLog (diff)
downloadw3m-7dcc7ccff1ea1e16be799d440c1f6ef892679615.tar.gz
w3m-7dcc7ccff1ea1e16be799d440c1f6ef892679615.zip
Add support for Gopher items 5 and I
Diffstat (limited to '')
-rw-r--r--file.c10
-rw-r--r--url.c2
2 files changed, 12 insertions, 0 deletions
diff --git a/file.c b/file.c
index 30a0308..329d375 100644
--- a/file.c
+++ b/file.c
@@ -1993,6 +1993,10 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer,
case 'h':
t = "text/html";
break;
+ case 'I':
+ t = "image/gopher";
+ break;
+ case '5':
case '9':
do_download = 1;
break;
@@ -7473,6 +7477,9 @@ loadGopherDir0(URLFile *uf, ParsedURL *pu)
case '1':
p = "[directory]";
break;
+ case '5':
+ p = "[DOS binary]";
+ break;
case '7':
p = "[search]";
break;
@@ -7491,6 +7498,9 @@ loadGopherDir0(URLFile *uf, ParsedURL *pu)
case 'i':
link = 0;
break;
+ case 'I':
+ p = "[image]";
+ break;
case '9':
p = "[binary]";
break;
diff --git a/url.c b/url.c
index aef66ad..618f168 100644
--- a/url.c
+++ b/url.c
@@ -1853,6 +1853,8 @@ openURL(char *url, ParsedURL *pu, ParsedURL *current,
case 's':
case 'g':
case 'h':
+ case 'I':
+ case '5':
case '7':
case '9':
tmp = Strnew_charp(pu->file);