Azure / azure-storage-python

Microsoft Azure Storage Library for Python
https://azure-storage.readthedocs.io
MIT License
339 stars 241 forks source link

get_blob_properties doesn't return HTTP headers #530

Closed coderall closed 5 years ago

coderall commented 5 years ago

Which service(blob, file, queue) does this issue concern?

blob

Which version of the SDK was used? Please provide the output of pip freeze.

What problem was encountered?

get_blob_properties interface doesn't return the HTTP response headers like Content-Type,Content-Encoding

Have you found a mitigation/solution?

no

Note: for table service, please post the issue here instead: https://github.com/Azure/azure-cosmosdb-python.

rickle-msft commented 5 years ago

Hi, @coderall. Thanks for asking this question! get_blob_properties returns a Blob type, which has a BlobProperties object as a field. BlobProperties contains a ContentSettings field, which has the information you're looking for. If you have more trouble from there, please let me know!