stronglink icon indicating copy to clipboard operation
stronglink copied to clipboard

Web server should determine MIME type from file extension

Open btrask opened this issue 9 years ago • 0 comments

Our static file server (part of the blog interface) currently uses a series of strcasecmp calls to determine what the file extension is. It works but it's obviously not that great.

The ideal data structure is probably a hash table. This is one of those cases where C is painful.

btrask avatar Aug 23 '15 23:08 btrask