]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Improve MIME handling. This patch is based on Eugene's patch, but
authorDavid Malone <dwmalone@FreeBSD.org>
Mon, 16 Aug 2004 09:38:34 +0000 (09:38 +0000)
committerDavid Malone <dwmalone@FreeBSD.org>
Mon, 16 Aug 2004 09:38:34 +0000 (09:38 +0000)
commit8fb0d5153429228423ae683f8f9c94a41bbed33c
tree65e3c39eb1079a74ea0cfc2ab5b03481bbd4d307
parentc37420b0d5b3b6ef875fbf0b84a13f6f09be56d6
Improve MIME handling. This patch is based on Eugene's patch, but
with the following changes:

1) Don't make a mime_types.h 'cos we should avoid creating variables
   in header files,
2) Use strrchr to find the extension, rather than strchr,
3) Slightly simplify the mime-type matching loop.

any goof are likely to be mine. Note that there are links to more
improvements by Eugene in the PR.

PR: 29725
Submitted by: Eugene Grosbein <eugen@kuzbass.ru>
release/picobsd/tinyware/simple_httpd/simple_httpd.c