Skip to content

Commit

Permalink
chore: comment on MIME type logic
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Oct 29, 2024
1 parent 79b37c9 commit 7efe232
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion chord_drs/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,10 @@ def object_download(object_id: str):

obj_name = drs_object.name
minio_obj = drs_object.return_minio_object()
mime_type = drs_object.mime_type or MIME_OCTET_STREAM

# DRS objects have a nullable mime_type in the database. If mime_type is None, serve the object as a generic
# application/octet-stream.
mime_type: str = drs_object.mime_type or MIME_OCTET_STREAM

if not minio_obj:
# Check for "Range" HTTP header
Expand Down

0 comments on commit 7efe232

Please sign in to comment.