phroxy

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

commit ef2d71ffb25c671f716109b8d9bb640fd0a5a9c4
parent aa14b0f30641e561646bf803aa212a65eefdab1a
Author: Willy Goiffon <dev@z3bra.org>
Date:   Thu, 24 Sep 2020 09:54:14 +0200

Fix parameters after bad merge

Diffstat:
Mphroxy.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/phroxy.c b/phroxy.c @@ -291,13 +291,13 @@ serveitem(char item, char *path, char *data, size_t len) int sent; - if (!contenttype(item)) { + if (!contenttype(item, path)) { printhttp(415); return 1; } printf("HTTP/1.1 200 OK\r\n"); - printheaders(contenttype(item)); + printheaders(contenttype(item, path)); switch(item) { case '1': // menu