btrask / stronglink

A searchable, syncable, content-addressable notetaking system
Other
1.04k stars 39 forks source link

Web server should determine MIME type from file extension #85

Open btrask opened 9 years ago

btrask commented 9 years ago

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.