tDifferenciate global host variable from local ones - phroxy - Gopher to HTTP proxy
 (HTM) git clone git://git.z3bra.org/phroxy.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit 9e05ae9780fcb1048c273226bcd03a72a3571c96
 (DIR) parent 5b689675cc8bd3a8c3dd5fa25f8671035ab2b293
 (HTM) Author: Willy Goiffon <dev@z3bra.org>
       Date:   Sat, 12 Sep 2020 00:10:08 +0200
       
       Differenciate global host variable from local ones
       
       Diffstat:
         M config.def.h                        |       2 +-
         M phroxy.c                            |       2 +-
       
       2 files changed, 2 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/config.def.h b/config.def.h
       t@@ -1,4 +1,4 @@
       -const char *host = "z3bra.org";
       +const char *http_host = "z3bra.org";
        const char *foot = "</pre></body></html>";
        const char *head =
                "<!DOCTYPE HTML>"
 (DIR) diff --git a/phroxy.c b/phroxy.c
       t@@ -201,7 +201,7 @@ printheaders(char *ctype)
                if (ctype)
                        printf("Content-Type: %s\r\n", ctype);
                printf("Server: phroxy\r\n");
       -        printf("Host: %s\r\n", host);
       +        printf("Host: %s\r\n", http_host);
                printf("Connection: close\r\n");
        }