@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 CHANGED
@@ -8,6 +8,8 @@
8
8
 
9
9
  ### Bugs Fixed
10
10
 
11
+ - Set correct content length in requests for uploading operations to avoid unexpected failure if customized content length is incorrect.
12
+
11
13
  ### Other Changes
12
14
 
13
15
  ## 12.9.0-beta.3 (2022-02-11)
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-read-only",
7611
- xmlName: "x-ms-file-copy-ignore-read-only",
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 && typeof request.body === "string" && request.body.length > 0) {
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 = [