dapr / dapr/components-contrib

Include hierarchical mimetype check

Open
#635 6 comments 0 reactions 0 assignees View on GitHub
pinned
Dominant language
Go
Stars
602
Forks
580
Avg merge
4d 9h
Merged PRs (30d)
6

Description

## Describe the proposal

We do mime type checks in the code (especially in PubSub). The logic now is naive, it would be more future proof to have a hierarchical comparison solution. This library has hierarchy of mime types, for example: https://github.com/gabriel-vasile/mimetype

Example of logic we have currently for mimetype: https://github.com/dapr/components-contrib/pull/631/files

Ideally, we would reuse a library and not implement our own hierarchy.

Note: this issue does not include mimetype detection, this is just for the comparison logic.
Note2: this issue is NOT proposing to use content type detection but to *REUSE* the mimetype hierarchy from an existing library.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.