Merge pull request #104 from pofallon/dev

Return metadata in blobResult when calling getBlobToStream
This commit is contained in:
André Rodrigues 2012-02-25 20:51:49 -08:00
Родитель 59848c822a b97aba0bbe
Коммит 7491997b21
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -1336,11 +1336,13 @@ BlobService.prototype.getBlobToStream = function (container, blob, writeStream,
this._setHeadersFromBlob(webResource, options); this._setHeadersFromBlob(webResource, options);
var self = this;
var processResponseCallback = function (responseObject, next) { var processResponseCallback = function (responseObject, next) {
responseObject.blobResult = null; responseObject.blobResult = null;
if (!responseObject.error) { if (!responseObject.error) {
responseObject.blobResult = new BlobResult(container, blob); responseObject.blobResult = new BlobResult(container, blob);
responseObject.blobResult.metadata = self.parseMetadataHeaders(responseObject.response.headers);
responseObject.blobResult.getPropertiesFromHeaders(responseObject.response.headers); responseObject.blobResult.getPropertiesFromHeaders(responseObject.response.headers);
var validateMD5 = !(options && options.disableContentMD5) && responseObject.blobResult.contentMD5; var validateMD5 = !(options && options.disableContentMD5) && responseObject.blobResult.contentMD5;