add mimetype and autoindex option + minor changes
* follow style(9) for prototypes * move first most used extension for more effeciciency when looking for mime * add opts.h to deal with options * remove lang=en by default * add option to set default mimetype * add option to autoindex if no index.gmi found * redirect if ending "/" is missing * send appropriate status code if request too long * edit manpage and README for new options
This commit is contained in:
parent
4a1b0c8ce2
commit
f60ea88c8d
11 changed files with 191 additions and 97 deletions
2
Makefile
2
Makefile
|
@ -7,7 +7,7 @@ all: vger
|
|||
clean:
|
||||
rm -f vger *.core *.o
|
||||
|
||||
vger: main.o mimes.o
|
||||
vger: main.o mimes.o opts.h
|
||||
${CC} -o vger main.o mimes.o
|
||||
|
||||
install: vger
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue