Allow dir-listing to be a configurable option

This commit is contained in:
FRIGN 2014-08-20 20:47:29 +02:00
parent ca2c107f30
commit 5dac8de322
2 changed files with 1 additions and 1 deletions

View file

@ -9,6 +9,7 @@ static const char *group = "nobody";
static const char *cgi_dir = "."; static const char *cgi_dir = ".";
static const char *cgi_script = "/werc.rc"; static const char *cgi_script = "/werc.rc";
static int cgi_mode = 0; static int cgi_mode = 0;
static int allowdirlist = 0;
static const MimeType servermimes[] = { static const MimeType servermimes[] = {
{ "html", "text/html; charset=UTF-8" }, { "html", "text/html; charset=UTF-8" },

View file

@ -97,7 +97,6 @@ static char reqhost[256];
static char reqmod[256]; static char reqmod[256];
static int fd = -1; static int fd = -1;
static Request req; static Request req;
static int allowdirlist = 0;
char * char *
tstamp(time_t t) { tstamp(time_t t) {