コード例 #1
0
ファイル: img.py プロジェクト: toddbirchard/jamstack-api
 def _add_image_headers(image_blob: Blob):
     if ".jpg" in image_blob.name and "octet-stream" in image_blob.content_type:
         image_blob.content_type = "image/jpg"
     elif ".png" in image_blob.name and "octet-stream" in image_blob.content_type:
         image_blob.content_type = "image/png"
     return image_blob