phroxy

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

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

diff --git a/phroxy.c b/phroxy.c @@ -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': @@ -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