Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion sdk/cosmosdb/cosmos/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 3 additions & 3 deletions sdk/cosmosdb/cosmos/src/utils/headers.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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()
};
}

Expand Down