gopherproxy-c

Gopher HTTP proxy in C (CGI)
git clone git://shroom.party/gopherproxy-c.git
Log | Files | Refs | README | LICENSE

commit cf21907a57c5649d4f7a5541f6dd47ce873dc258
parent 53b120a4535bb904b5cee0f90c3624bf2f38c063
Author: tx <trqx@goat.si>
Date:   Fri, 17 Aug 2018 13:48:12 +0200

handle images with a hack

Diffstat:
gopherproxy.c | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/gopherproxy.c b/gopherproxy.c @@ -506,6 +506,14 @@ main(void) dprintf(1, "Content-Type: text/plain; charset=utf-8\r\n\r\n"); servefile(u.host, u.port, path); return 0; + case 'g': + dprintf(1, "Content-Type: image/gif\r\n\r\n"); + servefile(u.host, u.port, path); + return 0; + case 'I': + dprintf(1, "Content-Type: image/png\r\n\r\n"); + servefile(u.host, u.port, path); + return 0; case '1': case '7': break; /* handled below */