Skip to content

Commit

Permalink
source code copied from azure-storage-php for v1.5.2-blob release
Browse files Browse the repository at this point in the history
  • Loading branch information
vinjiang committed Dec 29, 2020
1 parent 44f9268 commit 2475330
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2020.12 - version 1.5.2
* Resolved an issue where access condition does not work for large block blob uploads.
* Guzzle version is now updated to support both 6.x and 7.x.

2020.08 - version 1.5.1
* Lower case query parameter names.

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "microsoft/azure-storage-blob",
"version": "1.5.1",
"version": "1.5.2",
"description": "This project provides a set of PHP client libraries that make it easy to access Microsoft Azure Storage Blob APIs.",
"keywords": [ "php", "azure", "storage", "sdk", "blob" ],
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Internal/BlobResources.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class BlobResources extends Resources
{
// @codingStandardsIgnoreStart

const BLOB_SDK_VERSION = '1.5.1';
const BLOB_SDK_VERSION = '1.5.2';
const STORAGE_API_LATEST_VERSION = '2017-11-09';

// Error messages
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/BlobProperties.php
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ private function setCommonBlobProperties(array $clean)
Utilities::tryGetValue($clean, Resources::CONTENT_LANGUAGE)
);
$this->setContentType(
Utilities::tryGetValue($clean, Resources::CONTENT_TYPE)
Utilities::tryGetValue($clean, Resources::CONTENT_TYPE_LOWER_CASE)
);

if (Utilities::tryGetValue($clean, Resources::CONTENT_MD5) &&
Expand Down
1 change: 1 addition & 0 deletions src/Blob/Models/CommitBlobBlocksOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ public static function create($options)
$result->setContentDisposition($options->getContentDisposition());
$result->setMetadata($options->getMetadata());
$result->setLeaseId($options->getLeaseId());
$result->setAccessConditions($options->getAccessConditions());

return $result;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/ListBlobBlocksResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public static function create(array $headers, array $parsed)
)
);
$result->setContentType(
Utilities::tryGetValue($clean, Resources::CONTENT_TYPE)
Utilities::tryGetValue($clean, Resources::CONTENT_TYPE_LOWER_CASE)
);

$result->uncommittedBlocks = self::getEntries(
Expand Down

0 comments on commit 2475330

Please sign in to comment.