tRemove useless test for end of file in menus - phroxy - Gopher to HTTP proxy
 (HTM) git clone git://git.z3bra.org/phroxy.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit 73b0e6856c3bb7d0dc9fc10f2d9ac657f779454f
 (DIR) parent 813a41fdb0d7fe01d316f02ac1f3774fedc2cacc
 (HTM) Author: Willy Goiffon <dev@z3bra.org>
       Date:   Tue, 15 Sep 2020 11:08:07 +0200
       
       Remove useless test for end of file in menus
       
       Diffstat:
         M phroxy.c                            |       8 --------
       
       1 file changed, 0 insertions(+), 8 deletions(-)
       ---
 (DIR) diff --git a/phroxy.c b/phroxy.c
       t@@ -256,10 +256,6 @@ htmlize(char *data, size_t *bodysize)
                p = data;
        
                while((p = strsep(&data, "\n"))) {
       -                /* end-of-transmission */
       -                if (!strncmp(p, ".", 2))
       -                        break;
       -
                        i = *p++;
        
                        f[0] = strsep(&p, "\t");
       t@@ -409,10 +405,6 @@ phroxy(char *url)
                if (!data)
                        return 1;
        
       -        /* fail on incomplete menu output */
       -        if (item == '1' && strncmp(data + len - 5, "\r\n.\r\n", 5))
       -                return 1;
       -
                serveitem(item, data, len);
        
                return 0;