You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From what I can tell then it's basically an accident that we end up with x-m4a because the micnic build code mentioned above just takes the last value in the source json from jshttp/mime-db, which happens to be nginx's audio/x-m4a, and uses that as the only value in the resulting key/value list. The arguably more correct IANA version earlier in the jshttp/mime-db list (audio/mp4) gets overwritten.
I think to fix this, we might want to redo the code generation in gruf/go-mimetypes to draw from https://raw.githubusercontent.com/jshttp/mime-db/refs/heads/master/db.json instead, and prefer (in order) IANA, then Apache, then Nginx when assembling a canonical list of mime types to file extensions.
Right now we use the
x-m4a
extension MIME type, but I thinkaudio/mp4
might cause a bit less confusion for browsers and other fedi servers.Reference: https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Containers#browser_compatibility
The text was updated successfully, but these errors were encountered: