@azure/storage-file-share 12.9.0-alpha.20220211.2 → 12.9.0-alpha.20220302.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist-esm/src/generated/src/models/parameters.js +2 -2
- package/dist-esm/src/generated/src/models/parameters.js.map +1 -1
- package/dist-esm/src/policies/StorageSharedKeyCredentialPolicy.js +3 -1
- package/dist-esm/src/policies/StorageSharedKeyCredentialPolicy.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
@@ -7607,8 +7607,8 @@ const filePermissionCopyMode = {
|
|
7607
7607
|
const ignoreReadOnly1 = {
|
7608
7608
|
parameterPath: ["options", "copyFileSmbInfo", "ignoreReadOnly"],
|
7609
7609
|
mapper: {
|
7610
|
-
serializedName: "x-ms-file-copy-ignore-
|
7611
|
-
xmlName: "x-ms-file-copy-ignore-
|
7610
|
+
serializedName: "x-ms-file-copy-ignore-readonly",
|
7611
|
+
xmlName: "x-ms-file-copy-ignore-readonly",
|
7612
7612
|
type: {
|
7613
7613
|
name: "Boolean"
|
7614
7614
|
}
|
@@ -10168,7 +10168,9 @@ class StorageSharedKeyCredentialPolicy extends CredentialPolicy {
|
|
10168
10168
|
*/
|
10169
10169
|
signRequest(request) {
|
10170
10170
|
request.headers.set(HeaderConstants.X_MS_DATE, new Date().toUTCString());
|
10171
|
-
if (request.body &&
|
10171
|
+
if (request.body &&
|
10172
|
+
(typeof request.body === "string" || request.body !== undefined) &&
|
10173
|
+
request.body.length > 0) {
|
10172
10174
|
request.headers.set(HeaderConstants.CONTENT_LENGTH, Buffer.byteLength(request.body));
|
10173
10175
|
}
|
10174
10176
|
const stringToSign = [
|