A minimal but flexible directory listing server
Find a file
Laslo Hunhold 3ff82c514b Clean up request host properly
We all agree that the IPv6 address format is a big clusterfuck and only
an insane person would've come up with it given the double colons
interfere with the way one actually appends a port to a normal IPv4 address.

To counteract in this issue, the RFC specifies that one should enclose
IPv6-addresses in square brackets to make the disctinction possible,
i.e.

	host: ::1
	port: 80

	--> [::1]:80

The host field can contain both a port suffix and, of course by the RFC,
have the address enclosed in square brackets. Given I personally see
this as a "transport enclosure" I'd rather like to see it gone as soon
as possible and thus implement this cleanup in the http-header-parser so
the output is nice and clean and we don't have to deal with this garbage
later on.

Thanks to Josuah Demangeon <mail@josuah.net> for his wonderful input and
his dedication to read the RFCs 3986 and 2732 in such great detail.
2018-04-03 01:03:03 +02:00
arg.h Rename _i,_argused to i_,argused_ 2017-08-04 17:57:58 +02:00
config.def.h Introduce flag-centric usage 2018-03-05 00:14:25 +01:00
config.mk Be extra pedantic again and remove all warnings 2018-03-05 00:30:53 +01:00
http.c Clean up request host properly 2018-04-03 01:03:03 +02:00
http.h Refactor the single source file into multiple modules 2018-02-04 21:27:33 +01:00
LICENSE util: don't initialize server, it's already done in main() 2018-03-05 01:00:50 +01:00
main.c permit prefix to be empty in -v format string 2018-04-02 09:57:58 +02:00
Makefile Refactor the single source file into multiple modules 2018-02-04 21:27:33 +01:00
quark.1 permit prefix to be empty in -v format string 2018-04-02 09:57:58 +02:00
resp.c Be extra pedantic again and remove all warnings 2018-03-05 00:30:53 +01:00
resp.h Refactor the single source file into multiple modules 2018-02-04 21:27:33 +01:00
sock.c Add netinet/in.h to sock.c 2018-03-05 10:24:46 +01:00
sock.h Refactor the single source file into multiple modules 2018-02-04 21:27:33 +01:00
util.c util: don't initialize server, it's already done in main() 2018-03-05 01:00:50 +01:00
util.h Update the documentation to reflect the new flag-centric usage 2018-03-05 09:51:29 +01:00