Follow RFC 4266 more closely - gopher2html - AWK script that converts a Gopher response to HTML
 (HTM) hg clone https://bitbucket.org/iamleot/gopher2html
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
 (DIR) changeset de3078ac45072e7c08e1bde473642e3011222d50
 (DIR) parent 6194ea3e9b67a4758f1b58e2142950bb9aed3e89
 (HTM) Author: Leonardo Taccari <iamleot@gmail.com>
       Date:   Wed, 15 Aug 2018 12:18:06 
       
       Follow RFC 4266 more closely
       
       According 2.1, `Gopher URL Syntax' the <gophertype> does not need to be
       separated by <selector> with a `/'.
       
       E.g. URLs like:
       
        <gopher://example.org/0example.txt>
       
       ...are now correctly treated as GOPHER2HTML_TYPE=file.
       
       Diffstat:
        w3m/cgi-bin/gopher2html.cgi |  4 ++--
        1 files changed, 2 insertions(+), 2 deletions(-)
       ---
       diff -r 6194ea3e9b67 -r de3078ac4507 w3m/cgi-bin/gopher2html.cgi
       --- a/w3m/cgi-bin/gopher2html.cgi       Sat Jan 27 14:38:16 2018 +0100
       +++ b/w3m/cgi-bin/gopher2html.cgi       Wed Aug 15 12:18:06 2018 +0200
       @@ -1,7 +1,7 @@
        #!/bin/sh
        
       -case "$QUERY_STRING" in
       -*/0/*)
       +case "${QUERY_STRING#gopher://*/}" in
       +0*)
               export GOPHER2HTML_TYPE="file"
               echo Content-type: text/plain
               ;;