Ejemplo n.º 1
0
 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