Merge pull request #104 from pofallon/dev
Return metadata in blobResult when calling getBlobToStream
This commit is contained in:
Коммит
7491997b21
|
@ -1336,11 +1336,13 @@ BlobService.prototype.getBlobToStream = function (container, blob, writeStream,
|
|||
|
||||
this._setHeadersFromBlob(webResource, options);
|
||||
|
||||
var self = this;
|
||||
var processResponseCallback = function (responseObject, next) {
|
||||
responseObject.blobResult = null;
|
||||
|
||||
if (!responseObject.error) {
|
||||
responseObject.blobResult = new BlobResult(container, blob);
|
||||
responseObject.blobResult.metadata = self.parseMetadataHeaders(responseObject.response.headers);
|
||||
responseObject.blobResult.getPropertiesFromHeaders(responseObject.response.headers);
|
||||
|
||||
var validateMD5 = !(options && options.disableContentMD5) && responseObject.blobResult.contentMD5;
|
||||
|
|
Загрузка…
Ссылка в новой задаче