Skip to content

Commit

Permalink
Merge pull request #62 from leidegre/feature/get-blob-content-type
Browse files Browse the repository at this point in the history
Added contentType prop to getBlob response
  • Loading branch information
djmitche authored Nov 14, 2019
2 parents b261c45 + 11b3fe4 commit a9f8e28
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/blob.js
Original file line number Diff line number Diff line change
Expand Up @@ -1666,6 +1666,7 @@ Blob.prototype.putBlob = function putBlob(container, blob, options, content) {
* {
* eTag: '...', // The entity tag of the blob
* lastModified: '...', // The date/time the blob was last modified.
* contentType: '...', // The content type specified for the blob
* contentMD5: '...', // The MD5 hash fo the blob
* contentEncoding: '...', // The content encoding of the blob
* contentLanguage: '...', // The content language of the blob
Expand Down Expand Up @@ -1697,6 +1698,7 @@ Blob.prototype.getBlob = function getBlob(container, blob, options) {
var responseHeaders = response.headers;

return {
contentType: response.headers['content-type'],
contentMD5: responseHeaders['content-md5'],
contentEncoding: responseHeaders['content-encoding'],
contentLanguage: responseHeaders['content-language'],
Expand Down

0 comments on commit a9f8e28

Please sign in to comment.