phroxy

Gopher to HTTP proxy
git clone git://git.z3bra.org/phroxy.git
Log | Files | Refs | LICENSE

commit 73b0e6856c3bb7d0dc9fc10f2d9ac657f779454f
parent 813a41fdb0d7fe01d316f02ac1f3774fedc2cacc
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:
Mphroxy.c | 8--------
1 file changed, 0 insertions(+), 8 deletions(-)

diff --git a/phroxy.c b/phroxy.c @@ -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"); @@ -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;