lagrange
lagrange copied to clipboard
Patch to support more file extensions to MIME types
This is preparatory to FTP support, where only the extension tells you what the MIME type is.
Nice. Recognizing more extensions should be helpful in general.
I'll only need to check if mediaTypeFromFileExtension_String is being called often anywhere, which would have an implication on performance. In that case, using a binary search into an alphabetically sorted array might be preferable to a linear for loop.
Patch merged (with minor edits) in dev branch, due v1.14.