[core] perf: stat_cache_mimetype_by_ext()
commit0cc7556aec6ae6da4270e82a72d0bfce52ff1d8c
authorGlenn Strauss <gstrauss@gluelogic.com>
Fri, 14 Apr 2017 08:03:59 +0000 (14 04:03 -0400)
committerGlenn Strauss <gstrauss@gluelogic.com>
Sat, 15 Apr 2017 07:42:28 +0000 (15 03:42 -0400)
tree9f10434103121230441d24121925b3dcd987878b
parent8e97c84c0f491247ea200d93367aa1d81e6105c1
[core] perf: stat_cache_mimetype_by_ext()

shared code to get mimetype string via longest extension match
(attempts to match file basename, then longest ext, then "")

Note: this is a behavior change from simple suffix match
      if there are 16 or more entries in mimetypes.assign
src/mod_dirlisting.c
src/mod_webdav.c
src/stat_cache.c
src/stat_cache.h