Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Even more media-type support #719

Open
fmigneault opened this issue Sep 20, 2024 · 0 comments
Open

Even more media-type support #719

fmigneault opened this issue Sep 20, 2024 · 0 comments
Assignees
Labels
triage/enhancement New feature or request

Comments

@fmigneault
Copy link
Collaborator

Description

Using https://github.com/crim-ca/weaver/blob/master/weaver/formats.py utilities, most media-types can be resolved using a fallback lookup of the remote IANA registry. However, this additional request, when required, could potentially be avoided using https://docs.python.org/3/library/mimetypes.html

Perform local registry lookups (mimetypes.guess_type, mimetypes.guess_extension, mimetypes.types_map, etc.), as applicable, before attempting the fallback requests to remote registries.

Note

remote lookup remains valid for non-IANA registries and for lookup of very-recent entries potentially not updated on the machine running the code

References

  • n/a
@fmigneault fmigneault added the triage/enhancement New feature or request label Sep 20, 2024
@fmigneault fmigneault self-assigned this Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant