Skip to content

Commit

Permalink
Merge pull request #2 from trekawek/lease-action-case-sensitive
Browse files Browse the repository at this point in the history
The lease action should be case insensitive.
  • Loading branch information
arafato committed Mar 22, 2018
2 parents 65e0e26 + c9ae6b8 commit e7b5289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/model/blob/AzuriteRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class AzuriteRequest {
this.httpProps[N.RANGE_GET_CONTENT_MD5] = httpHeaders['x-ms-range-get-content-md5'];
this.httpProps[N.DELETE_SNAPSHOTS] = httpHeaders['x-ms-delete-snapshots'];
this.httpProps[N.LEASE_ID] = httpHeaders['x-ms-lease-id'];
this.httpProps[N.LEASE_ACTION] = httpHeaders['x-ms-lease-action'];
this.httpProps[N.LEASE_ACTION] = httpHeaders['x-ms-lease-action'] ? httpHeaders['x-ms-lease-action'].toLowerCase() : undefined;
this.httpProps[N.LEASE_DURATION] = httpHeaders['x-ms-lease-duration'];
this.httpProps[N.LEASE_BREAK_PERIOD] = httpHeaders['x-ms-lease-break-period'];
this.httpProps[N.PROPOSED_LEASE_ID] = httpHeaders['x-ms-proposed-lease-id'];
Expand Down

0 comments on commit e7b5289

Please sign in to comment.