Skip to content

Commit

Permalink
Allow empty content type for s3 objects (#332)
Browse files Browse the repository at this point in the history
* Allow empty content type for s3 objects

Fixes #331

* Update s3client.py
  • Loading branch information
georgeboot authored May 13, 2023
1 parent 28b2eb5 commit 557456e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudpathlib/s3/s3client.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def _get_metadata(self, cloud_path: S3Path) -> Dict[str, Any]:
"last_modified": data["LastModified"],
"size": data["ContentLength"],
"etag": data["ETag"],
"content_type": data["ContentType"],
"content_type": data.get("ContentType", None),
"extra": data["Metadata"],
}

Expand Down

0 comments on commit 557456e

Please sign in to comment.