tskrtt

Simple libev based gopher server
git clone https://git.inz.fi/tskrtt/
Log | Files | Refs | README

commit abbf1d9964e5eb1cdbd7c151ca314493ec32be2d
parent a677d4626e6e830a0e682634b6af0d9424950021
Author: Santtu Lakkala <inz@inz.fi>
Date:   Mon, 17 May 2021 22:33:27 +0300

Use type 1 for d?cgi and gph

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

diff --git a/main.c b/main.c @@ -534,6 +534,10 @@ static char guess_type(struct dirent *e, struct stat *s) strsfx(e->d_name, ".png") || strsfx(e->d_name, ".jpeg")) return 'I'; + if (strsfx(e->d_name, ".cgi") || + strsfx(e->d_name, ".dcgi") || + strsfx(e->d_name, ".gph")) + return '1'; return '9'; }