stronglink
stronglink copied to clipboard
Web server should determine MIME type from file extension
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.