Skip to content

Update MimeTypes, introduce precedence#358

Open
thekid wants to merge 1 commit intoxp-framework:mainfrom
thekid:feature/update-mimetypes
Open

Update MimeTypes, introduce precedence#358
thekid wants to merge 1 commit intoxp-framework:mainfrom
thekid:feature/update-mimetypes

Conversation

@thekid
Copy link
Member

@thekid thekid commented Feb 15, 2026

This pull request updates the util.MimeTypes enumeration from https://cdn.jsdelivr.net/gh/jshttp/mime-db@latest/db.json, and adds a number of tests for well-known mime types.

Precedence used to resolve conflicts

  • application/octet-stream: 0.1
  • application/x-*: 0.7
  • */vnd.*: 0.8
  • application/*: 0.9

Script used to generate enumeration

https://gist.github.com/thekid/73ef0fbc0aea76031453cf6ec11528c5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant