-
Notifications
You must be signed in to change notification settings - Fork 2
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
fix: add content type to metadata file #425
Conversation
daa57df
to
90d78f6
Compare
Is it practical to write some tests for this, to make sure that we set content type properly for json files, and also that content types for images aren't weird? |
ingestion_tools/scripts/tests/s3_import/test_collection_metadata.py
Outdated
Show resolved
Hide resolved
319e75f
to
a440649
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a test to ensure that non-json files are written without a content-type: json header?
Ok to merge after that, thanks for the fixes!
Relates to chanzuckerberg/cryoet-data-portal#1390
Description
This one makes sure that
ContentType
is set only for metadata json filesTested here and here.