html.cgi: improve content support
commitc3b9383ab04709fa84fc399e2b7a34d68bd944b2
authorKyle J. McKay <mackyle@gmail.com>
Mon, 20 Apr 2015 12:01:37 +0000 (20 05:01 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Mon, 20 Apr 2015 12:01:37 +0000 (20 05:01 -0700)
treeb8345a38e348d9c68eea01e491ef888ac1b290aa
parenta009dbe87785e4869a4f8a1ecd06ca5b4009ee51
html.cgi: improve content support

Besides .png, also properly pass on .jpg, .jpeg,
.gif, .svg and .svgz files.  Avoid reading them
entirely into memory as well.

Automatically handle UTF-8 and/or ISO-8859-1 text.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
cgi/html.cgi