diff --git a/sdk/cosmosdb/cosmos/CHANGELOG.md b/sdk/cosmosdb/cosmos/CHANGELOG.md index bcce9432ff49..6834adfb08c0 100644 --- a/sdk/cosmosdb/cosmos/CHANGELOG.md +++ b/sdk/cosmosdb/cosmos/CHANGELOG.md @@ -1,8 +1,9 @@ # Release History -## 3.7.0 (Unreleased) +## 3.7.0 (2020-6-08) - BUGFIX: Support crypto functions in Internet Explorer browser +- BUGFIX: Incorrect key casing in object returned by `setAuthorizationHeader` - FEATURE: Adds `readOffer` methods to container and database - FEATURE: Allows string value `partitionKey` parameter when creating containers diff --git a/sdk/cosmosdb/cosmos/src/utils/headers.ts b/sdk/cosmosdb/cosmos/src/utils/headers.ts index be801d6558a6..028d539315b1 100644 --- a/sdk/cosmosdb/cosmos/src/utils/headers.ts +++ b/sdk/cosmosdb/cosmos/src/utils/headers.ts @@ -1,5 +1,5 @@ import { hmac } from "./hmac"; -import { HTTPMethod, ResourceType } from "../common"; +import { HTTPMethod, ResourceType, Constants } from "../common"; export async function generateHeaders( masterKey: string, @@ -11,8 +11,8 @@ export async function generateHeaders( const sig = await signature(masterKey, method, resourceType, resourceId, date); return { - Authorization: sig, - "x-ms-date": date.toUTCString() + [Constants.HttpHeaders.Authorization]: sig, + [Constants.HttpHeaders.XDate]: date.toUTCString() }; }