Skip to content

Commit

Permalink
chore: comment on MIME pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Oct 31, 2024
1 parent 42887bb commit c5c1302
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chord_drs/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
DRS_SPEC_VERSION = "1.4.0" # update to match whatever version of the DRS spec is implemented.
SERVICE_TYPE = build_service_type("org.ga4gh", SERVICE_ARTIFACT, DRS_SPEC_VERSION)

# See https://datatracker.ietf.org/doc/html/rfc2045#section-5.1
# - only allow discrete-type content types
# - allow parameters specifying encoding and whatnot
RE_INGESTABLE_MIME_TYPE = re.compile(
r"^(application|audio|font|image|model|text|video)"
r"/[a-zA-Z0-9+\-._]+"
Expand Down

0 comments on commit c5c1302

Please sign in to comment.