tAdd handler for type "h" (expect HTML redirect from server) - phroxy - Gopher to HTTP proxy
 (HTM) git clone git://git.z3bra.org/phroxy.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit 0823bcb34e01b1e391207e2b2aaffd61ed763c24
 (DIR) parent 73b0e6856c3bb7d0dc9fc10f2d9ac657f779454f
 (HTM) Author: Willy Goiffon <dev@z3bra.org>
       Date:   Tue, 15 Sep 2020 11:35:01 +0200
       
       Add handler for type "h" (expect HTML redirect from server)
       
       Diffstat:
         M phroxy.c                            |       2 ++
       
       1 file changed, 2 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/phroxy.c b/phroxy.c
       t@@ -182,6 +182,7 @@ contenttype(char i)
                case '0':
                case '1':
                case '7':
       +        case 'h':
                        return "text/html; charset=utf-8";
                        break; /* NOTREACHED */
                case '6':
       t@@ -329,6 +330,7 @@ serveitem(char item, char *data, size_t len)
                case '9': // binary
                case 'g': // gif
                case 'I': // image
       +        case 'h': // http redirect
                        break;
        
                case '2': // CSO phone-book server