diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-06-25 13:28:21 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-06-25 13:28:21 -0700 |
commit | 1c4b1bcd0384b655088028474bcbf13778f741c2 (patch) | |
tree | 3d31c2c6a0c1b3121f81960e9c8f193728cac478 /python/sandcrawler/minio.py | |
parent | 0c0585fc83bb155519c6e00c5c67920d2972116f (diff) | |
download | sandcrawler-1c4b1bcd0384b655088028474bcbf13778f741c2.tar.gz sandcrawler-1c4b1bcd0384b655088028474bcbf13778f741c2.zip |
changes from prod
Diffstat (limited to 'python/sandcrawler/minio.py')
-rw-r--r-- | python/sandcrawler/minio.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/python/sandcrawler/minio.py b/python/sandcrawler/minio.py index 4126b4b..8b02211 100644 --- a/python/sandcrawler/minio.py +++ b/python/sandcrawler/minio.py @@ -66,6 +66,12 @@ class SandcrawlerMinioClient(object): content_type = "application/octet-stream" if extension.endswith('.xml'): content_type = "application/xml" + if extension.endswith('.png'): + content_type = "image/png" + elif extension.endswith('.jpg') or extension.endswith('.jpeg'): + content_type = "image/jpeg" + elif extension.endswith('.txt'): + content_type = "text/plain" self.mc.put_object( bucket, obj_path, |