Update mime type registration

@fosdev FOR DISCUSSION ONLY. DO NOT MERGE.
Can probably do this on one line as ternary