Skip to content

Commit 965eb8c

Browse files
committed
Don't lowercase resourceUrl
1 parent 36b36ee commit 965eb8c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

cosmos-db/cosmos-db.psm1

+8-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,14 @@ Function Get-Base64Masterkey([string]$ResourceGroup, [string]$Database, [string]
7171
}
7272

7373
Function Get-Signature([string]$verb, [string]$resourceType, [string]$resourceUrl, [string]$now) {
74-
((@($verb, $resourceType, $resourceUrl, $now, "") -join "`n") + "`n").ToLower()
74+
$parts = @(
75+
$verb.ToLower(),
76+
$resourceType.ToLower(),
77+
$resourceUrl,
78+
$now.ToLower(),
79+
""
80+
)
81+
(($parts -join "`n") + "`n")
7582
}
7683

7784
Function Get-Base64EncryptedSignatureHash([string]$masterKey, [string]$signature) {

0 commit comments

Comments
 (0)