t* gopherproxy-c customized URI git clone git://git.codevoid.de/gopherproxy-c-sdk DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit 737985333a6beea0e609b139b080228b117ef9c3 DIR parent 861e6fd9d5d8c09ca68e120db43279d3e5d5a938 URI Author: Stefan Hagen <sh+git[at]codevoid[dot]de> Date: Tue, 30 Oct 2018 15:09:36 +0100 sdk customizations Diffstat: M gopherproxy.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) --- DIR diff --git a/gopherproxy.c b/gopherproxy.c t@@ -162,7 +162,7 @@ typestr(int c) case '8': return "TELNET"; case '9': return " BIN"; case 'g': return " GIF"; - case 'h': return " HTML"; /* non-standard */ + case 'h': return " URI"; /* non-standard */ case 's': return " SND"; /* non-standard */ case '+': return "MIRROR"; case 'I': return " IMG"; t@@ -602,12 +602,12 @@ main(void) "<html dir=\"ltr\">\n" "<head>\n" "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n" - "<title>", stdout); + "<title>gopher://codevoid.de", stdout); + //if (query[0]) + // fputs(" - ", stdout); xmlencode(query); - if (query[0]) - fputs(" - ", stdout); fputs( - "Gopher HTTP proxy</title>\n" + "</title>\n" "<style type=\"text/css\">a { text-decoration: none; } " "a:hover { text-decoration: underline; }</style>\n" "<meta name=\"robots\" content=\"noindex, nofollow\" />\n"